mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 21:09:06 +02:00
Overhaul modal to make it responsive and not super lame
This commit is contained in:
6
docs/assets/js/bootstrap.js
vendored
6
docs/assets/js/bootstrap.js
vendored
@@ -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);
|
||||
/* ===========================================================
|
||||
|
Reference in New Issue
Block a user