diff options
Diffstat (limited to 'docs/assets/js/bootstrap-modal.js')
-rw-r--r-- | docs/assets/js/bootstrap-modal.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-modal.js b/docs/assets/js/bootstrap-modal.js index 2c5ef79d29..ed2f1f8944 100644 --- a/docs/assets/js/bootstrap-modal.js +++ b/docs/assets/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); |