From 443236b122ecb7e9b7bb2f8c0e785f534a7eebf2 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 ed1e55bebf..c25b28f718 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; }