From 0a25b2c4483b799e904f9dcd2100e27c488c8f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 26 Oct 2012 11:08:35 -0400 Subject: [PATCH] Dialog: move to top when opening again, and focus as if opened from scratch. --- ui/jquery.ui.dialog.js | 2 ++ 1 file changed, 2 insertions(+) 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; }