Ticket #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: | |
| Blocking: | Blocked by: |
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
Note: See
TracTickets for help on using
tickets.


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