0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-30 22:52:24 +01:00
This commit is contained in:
Jacob Thornton 2013-07-28 22:14:43 -07:00
parent ce57378705
commit e5a7af36d5
4 changed files with 12 additions and 8 deletions

View File

@ -15,7 +15,7 @@
offset: navHeight offset: navHeight
}) })
$('[href=#]').click(function (e) { $('.bs-docs-container [href=#]').click(function (e) {
e.preventDefault() e.preventDefault()
}) })

View File

@ -1054,9 +1054,11 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
}) })
}) })
$(function () {
var $body = $(document.body) var $body = $(document.body)
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') }) .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') }) .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
})
}(window.jQuery); }(window.jQuery);

File diff suppressed because one or more lines are too long

View File

@ -234,8 +234,10 @@
}) })
}) })
$(function () {
var $body = $(document.body) var $body = $(document.body)
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') }) .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') }) .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
})
}(window.jQuery); }(window.jQuery);