aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/modal-jquery.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-28 20:45:50 -0400
committerGitHub <noreply@github.com>2020-10-28 20:45:50 -0400
commit890de095db4019e33bda4936dc32f85a8d99f20d (patch)
treea0edb28bc38ad7e870ccc6244366b0cdff9c0be4 /ext/bg/js/settings/modal-jquery.js
parent25cedc8c524ddb5805a0686d1607c502426cdc14 (diff)
Fix modals not closing properly when the outside is clicked (#967)
Diffstat (limited to 'ext/bg/js/settings/modal-jquery.js')
-rw-r--r--ext/bg/js/settings/modal-jquery.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/settings/modal-jquery.js b/ext/bg/js/settings/modal-jquery.js
index 7c8e0de9..a35da1af 100644
--- a/ext/bg/js/settings/modal-jquery.js
+++ b/ext/bg/js/settings/modal-jquery.js
@@ -26,6 +26,10 @@ class Modal extends EventDispatcher {
return this._node;
}
+ prepare() {
+ // NOP
+ }
+
isVisible() {
return !!(this._getWrappedNode().data('bs.modal') || {}).isShown;
}