Dialog: Trigger focus event when dialog is moved to top.

This commit is contained in:
Jörn Zaefferer 2012-11-09 17:39:59 +01:00
parent b6cefc797e
commit 4e03321fd7

View File

@ -306,8 +306,7 @@ $.widget("ui.dialog", {
open: function() { open: function() {
if ( this._isOpen ) { if ( this._isOpen ) {
// TODO don't pass silent flag? should probably trigger focus when moving to top again this.moveToTop( null );
this.moveToTop( null, true );
// TODO run this only when dialog wasn't focused? // TODO run this only when dialog wasn't focused?
this._focusTabbable(); this._focusTabbable();
return; return;