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
This commit is contained in:
Jörn Zaefferer 2015-09-21 12:39:09 +02:00 committed by Scott González
parent 874b4a0316
commit 11bd6d28b7

View File

@ -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