]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: move to top when opening again, and focus as if opened from scratch.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 26 Oct 2012 15:08:35 +0000 (11:08 -0400)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 26 Nov 2012 09:26:11 +0000 (10:26 +0100)
ui/jquery.ui.dialog.js

index ed1e55bebf4a593bc007665a519471bfab515d7e..c25b28f7180dbc735c54fbb119d0c9c0fc3dc10b 100644 (file)
@@ -279,6 +279,8 @@ $.widget("ui.dialog", {
 
        open: function() {
                if ( this._isOpen ) {
+                       this.moveToTop( null, true );
+                       this._focusTabbable();
                        return;
                }