r2130 - trunk/ui

r2130 - trunk/ui


Author: scott.gonzalez
Date: Tue Feb 24 21:29:01 2009
New Revision: 2130
Modified:
trunk/ui/ui.dialog.js
Log:
Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog
z-index adjusted incorrectly on mousedown.
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js    (original)
+++ trunk/ui/ui.dialog.js    Tue Feb 24 21:29:01 2009
@@ -64,7 +64,7 @@
                    'aria-labelledby': titleId
                })
                .mousedown(function(event) {
-                    self.moveToTop(event);
+                    self.moveToTop(false, event);
                }),
            uiDialogContent = this.element
@@ -200,7 +200,7 @@
        this._trigger('focus', event);
    },
-    open: function(event) {
+    open: function() {
        if (this._isOpen) { return; }
        var options = this.options,
@@ -211,7 +211,7 @@
        this._size();
        this._position(options.position);
        uiDialog.show(options.show);
-        this.moveToTop(true, event);
+        this.moveToTop(true);
        // prevent tabbing out of modal dialogs
        (options.modal && uiDialog.bind('keypress.ui-dialog', function(event) {
@@ -243,7 +243,7 @@
            .filter(':first')
            .focus();
-        this._trigger('open', event);
+        this._trigger('open');
        this._isOpen = true;
    },