From 11bd6d28b795971aa55efccfaf69c4e6b5fde629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Mon, 21 Sep 2015 12:39:09 +0200 Subject: [PATCH] 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 --- ui/widgets/dialog.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/widgets/dialog.js b/ui/widgets/dialog.js index 4380c6f8fa..6070014c9d 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