aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-modal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index a7ab252eb..f1e795668 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -59,6 +59,7 @@
this.isShown = true
_.escape.call(this)
+
_.backdrop.call(this, function () {
that.$element
.appendTo(document.body)
@@ -133,6 +134,8 @@
$.support.transition && this.$element.hasClass('fade')?
this.$backdrop.one(transitionEnd, removeElement) :
removeElement()
+ } else {
+ callback()
}
}