aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-modal.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 2c5ef79d2..ed2f1f894 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -239,6 +239,10 @@
.one('hide', function () {
$this.focus()
})
- })
+ })
+
+ var $body = $('body')
+ .on('shown', '.modal', function () { $body.addClass('modal-open') })
+ .on('hidden', '.modal', function () { $body.removeClass('modal-open') })
}(window.jQuery);