Skip to content

Instantly share code, notes, and snippets.

@scottgonzalez
Last active January 3, 2016 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottgonzalez/8418902 to your computer and use it in GitHub Desktop.
Save scottgonzalez/8418902 to your computer and use it in GitHub Desktop.
$( "#dialog" ).dialog({
buttons: [
{
text: "a",
"class": "primary",
click: function() {
alert( "a" );
},
},
{
text: "b",
click: function() {
alert( "b" );
}
}
]
});
$.widget( "ui.dialog", $.ui.dialog, {
_createButtons: function() {
this._super();
this.uiButtonSet.children().addClass( "button" );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment