Skip to content

Commit

Permalink
Dialog: Trigger focus event when dialog is moved to top.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Nov 26, 2012
1 parent b6cefc7 commit 4e03321
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/jquery.ui.dialog.js
Expand Up @@ -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;
Expand Down

0 comments on commit 4e03321

Please sign in to comment.