]> source.dussan.org Git - jquery-ui.git/commitdiff
Added dialog close for buttons
authorTodd Parker <fg.todd@gmail.com>
Tue, 30 Dec 2008 20:22:12 +0000 (20:22 +0000)
committerTodd Parker <fg.todd@gmail.com>
Tue, 30 Dec 2008 20:22:12 +0000 (20:22 +0000)
demos/dialog/modal_confirmation.html
demos/dialog/modal_form.html
demos/dialog/modal_message.html

index 2e4d264cae7833eec602966ea797ac5edf87ddbb..44566622bf684c928da90c025909bcac76813056 100644 (file)
                        },
                        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');
                                }
                        }
index dd1053c25c00024c4a51016bc09a2df5f73159b5..e272ad826ebe568e6116b26f2e815657bf5d93d7 100644 (file)
                        },
                        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');
                                }
                        }
index 3d41897d947d25ca6877b4f0bd343b638f196033..721de93495e7531328bb6eff63046d9c01900200 100644 (file)
@@ -19,7 +19,7 @@
                        },
                        buttons: {
                                Ok: function() {
-                                       alert('You clicked Ok!');
+                                       $(this).dialog('close');
                                }
                        }
                });\r