aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/modal.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/modal.js b/js/modal.js
index 83095e8ff..d53cc9eaf 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -234,8 +234,10 @@
})
})
- var $body = $(document.body)
- .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
- .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
+ $(function () {
+ var $body = $(document.body)
+ .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
+ .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
+ })
}(window.jQuery);