diff options
| author | Mark Otto <[email protected]> | 2013-02-06 02:07:40 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-02-06 02:07:40 -0800 |
| commit | 8ca70bd83a92c0fdc1759b1d55b699e4162cf865 (patch) | |
| tree | 80661279c49d2f640b4ba1fc6c3a115add4b34bd /docs/assets/js/bootstrap.js | |
| parent | 0b4668368bb3ffd7800e6cb7c49366d78b156167 (diff) | |
| download | bootstrap-8ca70bd83a92c0fdc1759b1d55b699e4162cf865.tar.xz bootstrap-8ca70bd83a92c0fdc1759b1d55b699e4162cf865.zip | |
Overhaul modal to make it responsive and not super lame
Diffstat (limited to 'docs/assets/js/bootstrap.js')
| -rw-r--r-- | docs/assets/js/bootstrap.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index 16d8d66c2..a8c8018a6 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -1037,7 +1037,11 @@ .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); /* =========================================================== |
