javascript - jquery dialog adding in unwanted buttons -
when seek add together class buttons in dialog pulls in other buttons. code:
$("#selectaddressform").dialog({ title: "please select option", buttons: [ { text: "cancel", "class" : "first-button", click: function() {$(this).dialog('close');} }, { text: "select", "class" : "second-button", click: function() { bindcitystatedialog(citystate); $(this).dialog('close'); } } ], resizable: false, width: 'auto', }); when run code adds in 3 buttons" find, findindexof, findbyproperty. these functions created in arrayutils.js i'm not making reference them in js file i'm calling dialog.
if makes difference i'm using jquery v1.4.2 , jquery-ui-1.8.6.
thanks in advance, everyone.
this looks tough one.
i can't remember ever having used class option. , don't know if really exists. can, however, remember having used icons alternative in similar way did. , worked.
as said, custom method of yours may cause problem. seek , find out if method beingness called printing out stack trace. might tell if suspected method beingness called jquery dialog widget.
javascript jquery jquery-dialog
No comments:
Post a Comment