when I try to add a class to the buttons in my dialog it pulls in other buttons. Code:
$("#selectAddressForm").dialog({
title: "Please Select an 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 I run the code it adds in three extra buttons" find, findIndexOf, findByProperty. These are functions created in my ArrayUtils.js but I'm not even making any reference to them in the js file that I'm calling my dialog.
If it makes any difference I'm using jquery v1.4.2 and jquery-ui-1.8.6.
Thanks in advance, everyone.