r1364 - trunk/demos/dialog

r1364 - trunk/demos/dialog


Author: fg.todd
Date: Tue Dec 30 12:22:12 2008
New Revision: 1364
Modified:
trunk/demos/dialog/modal_confirmation.html
trunk/demos/dialog/modal_form.html
trunk/demos/dialog/modal_message.html
Log:
Added dialog close for buttons
Modified: trunk/demos/dialog/modal_confirmation.html
==============================================================================
--- trunk/demos/dialog/modal_confirmation.html    (original)
+++ trunk/demos/dialog/modal_confirmation.html    Tue Dec 30 12:22:12 2008
@@ -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');
                }
            }
Modified: trunk/demos/dialog/modal_form.html
==============================================================================
--- trunk/demos/dialog/modal_form.html    (original)
+++ trunk/demos/dialog/modal_form.html    Tue Dec 30 12:22:12 2008
@@ -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');
                }
            }
Modified: trunk/demos/dialog/modal_message.html
==============================================================================
--- trunk/demos/dialog/modal_message.html    (original)
+++ trunk/demos/dialog/modal_message.html    Tue Dec 30 12:22:12 2008
@@ -19,7 +19,7 @@
            },
            buttons: {
                Ok: function() {
-                    alert('You clicked Ok!');
+                    $(this).dialog('close');
                }
            }
        });