From: Jörn Zaefferer Date: Fri, 9 Nov 2012 16:39:59 +0000 (+0100) Subject: Dialog: Trigger focus event when dialog is moved to top. X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=329507f418ab4ec407a92162c2559dd57144727a;p=jquery-ui.git Dialog: Trigger focus event when dialog is moved to top. --- 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;