Added dialog close for buttons

This commit is contained in:
Todd Parker 2008-12-30 20:22:12 +00:00
parent cab1e162e8
commit 56727f40c0
3 changed files with 3 additions and 5 deletions

View File

@ -21,10 +21,9 @@
}, },
buttons: { buttons: {
'Delete all items in recycle bin': function() { 'Delete all items in recycle bin': function() {
alert('The items were deleted forever!'); $(this).dialog('close');
}, },
Cancel: function() { Cancel: function() {
alert('You clicked Cancel. The dialog will now close.');
$(this).dialog('close'); $(this).dialog('close');
} }
} }

View File

@ -20,10 +20,9 @@
}, },
buttons: { buttons: {
'Create user account': function() { 'Create user account': function() {
alert('The user was created!'); $(this).dialog('close');
}, },
Cancel: function() { Cancel: function() {
alert('You clicked Cancel. The dialog will now close.');
$(this).dialog('close'); $(this).dialog('close');
} }
} }

View File

@ -19,7 +19,7 @@
}, },
buttons: { buttons: {
Ok: function() { Ok: function() {
alert('You clicked Ok!'); $(this).dialog('close');
} }
} }
}); });