Skip to main content

Search and Top Navigation

#4332 closed bug (notabug)

Opened March 13, 2009 11:52AM UTC

Closed March 16, 2009 12:54AM UTC

button text name is shown as button text

Reported by: yegdav Owned by:
Priority: major Milestone: 1.7
Component: ui.dialog Version: 1.7
Keywords: dialog Cc:
Blocked by: Blocking:
Description

Hi Guys.

First of all I'd like to say thank you for all the job you did - JQUERY is the best thing i've ever met in the web.

Unfortunately i found a bug in the dialog:

function loadPhotoDialog(button_ok,someurl,somecallback){
    jQuery('#somebox').dialog({
        appendToElement: document.body,
        buttons: {button_ok:function(){jQuery.get(someurl);
                jQuery('#somediv').html(somecallback);
                jQuery(this).dialog('close');},
             'close':function(){
                jQuery(this).dialog('close');}
            }
    });
}

when dialog opens on the button i see not the value of the button_ok variable but the text "button_ok" - the name of the variable.

Attachments (0)
Change History (1)

Changed March 16, 2009 12:54AM UTC by scottgonzalez comment:1

milestone: TBD1.7
resolution: → invalid
status: newclosed

This is as designed, please read the documentation about how this option is used.