mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
Overhaul modal to make it responsive and not super lame
This commit is contained in:
Vendored
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user