aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-21 12:39:09 +0200
committerScott González <scott.gonzalez@gmail.com>2015-09-25 13:46:53 -0400
commit11bd6d28b795971aa55efccfaf69c4e6b5fde629 (patch)
tree85de76e03e99eed3a983e1bebe3d55353be43c9a
parent874b4a0316b262edaf184a9ddbef539bb6496082 (diff)
downloadjquery-ui-11bd6d28b795971aa55efccfaf69c4e6b5fde629.tar.gz
jquery-ui-11bd6d28b795971aa55efccfaf69c4e6b5fde629.zip
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
-rw-r--r--ui/widgets/dialog.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/widgets/dialog.js b/ui/widgets/dialog.js
index 4380c6f8f..6070014c9 100644
--- a/ui/widgets/dialog.js
+++ b/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