Skip to content
Permalink
Browse files

Dialog: Override disabled option on create, force always-enabled state

Without this, _on will still respect the disabled option and ends up
preventing closing the dialog.

Ref #9151
Ref gh-1599
  • Loading branch information
jzaefferer authored and scottgonzalez committed Sep 25, 2015
1 parent 874b4a0 commit 11bd6d28b795971aa55efccfaf69c4e6b5fde629
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/widgets/dialog.js
@@ -129,6 +129,11 @@ $.widget( "ui.dialog", {
this.options.title = this.originalTitle;
}

// Dialogs can't be disabled
if ( this.options.disabled ) {
this.options.disabled = false;
}

this._createWrapper();

this.element

0 comments on commit 11bd6d2

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