From 4e03321fd7cb41ba43a945982de2cb636fd7c70e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 9 Nov 2012 17:39:59 +0100 Subject: [PATCH] Dialog: Trigger focus event when dialog is moved to top. --- ui/jquery.ui.dialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 0ed529345..628139407 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -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; -- 2.39.5