]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Trigger focus event when dialog is moved to top.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 9 Nov 2012 16:39:59 +0000 (17:39 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 26 Nov 2012 09:26:12 +0000 (10:26 +0100)
ui/jquery.ui.dialog.js

index 0ed5293457294806adb58d04a225ee26ad913c6d..628139407492eb05ebc5c07cf764f8b4d2008dbf 100644 (file)
@@ -306,8 +306,7 @@ $.widget("ui.dialog", {
 
        open: function() {
                if ( this._isOpen ) {
-                       // TODO don't pass silent flag? should probably trigger focus when moving to top again
-                       this.moveToTop( null, true );
+                       this.moveToTop( null );
                        // TODO run this only when dialog wasn't focused?
                        this._focusTabbable();
                        return;