1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 23:54:08 +02:00

Overhaul modal to make it responsive and not super lame

This commit is contained in:
Mark Otto
2013-02-06 02:07:40 -08:00
parent 0b4668368b
commit 8ca70bd83a
8 changed files with 294 additions and 82 deletions

View File

@@ -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);