mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Added dialog close for buttons
This commit is contained in:
parent
cab1e162e8
commit
56727f40c0
@ -21,10 +21,9 @@
|
||||
},
|
||||
buttons: {
|
||||
'Delete all items in recycle bin': function() {
|
||||
alert('The items were deleted forever!');
|
||||
$(this).dialog('close');
|
||||
},
|
||||
Cancel: function() {
|
||||
alert('You clicked Cancel. The dialog will now close.');
|
||||
$(this).dialog('close');
|
||||
}
|
||||
}
|
||||
|
@ -20,10 +20,9 @@
|
||||
},
|
||||
buttons: {
|
||||
'Create user account': function() {
|
||||
alert('The user was created!');
|
||||
$(this).dialog('close');
|
||||
},
|
||||
Cancel: function() {
|
||||
alert('You clicked Cancel. The dialog will now close.');
|
||||
$(this).dialog('close');
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
},
|
||||
buttons: {
|
||||
Ok: function() {
|
||||
alert('You clicked Ok!');
|
||||
$(this).dialog('close');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user