Skip to content
Permalink
Browse files

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

  • Loading branch information...
jzaefferer committed Nov 9, 2012
1 parent b6cefc7 commit 4e03321fd7cb41ba43a945982de2cb636fd7c70e
Showing with 1 addition and 2 deletions.
  1. +1 −2 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;

0 comments on commit 4e03321

Please sign in to comment.
You can’t perform that action at this time.