From: Jörn Zaefferer Date: Fri, 26 Oct 2012 15:08:35 +0000 (-0400) Subject: Dialog: move to top when opening again, and focus as if opened from scratch. X-Git-Tag: 1.10.0-beta.1~129 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a25b2c4483b799e904f9dcd2100e27c488c8f20;p=jquery-ui.git Dialog: move to top when opening again, and focus as if opened from scratch. --- diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index ed1e55beb..c25b28f71 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -279,6 +279,8 @@ $.widget("ui.dialog", { open: function() { if ( this._isOpen ) { + this.moveToTop( null, true ); + this._focusTabbable(); return; }