Opened 11 years ago

Closed 11 years ago

#4332 closed bug (notabug)

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.

Change History (1)

comment:1 Changed 11 years ago by Scott González

Milestone: TBD1.7
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.