0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

fix js from @fat feedback for modal

This commit is contained in:
Mark Otto 2013-02-07 19:38:46 -08:00
parent 52581839c7
commit a9729c5fd0
4 changed files with 4 additions and 4 deletions

View File

@ -241,7 +241,7 @@
}) })
}) })
var $body = $('body') var $body = $(document.body)
.on('shown', '.modal', function () { $body.addClass('modal-open') }) .on('shown', '.modal', function () { $body.addClass('modal-open') })
.on('hidden', '.modal', function () { $body.removeClass('modal-open') }) .on('hidden', '.modal', function () { $body.removeClass('modal-open') })

View File

@ -1039,7 +1039,7 @@
}) })
}) })
var $body = $('body') var $body = $(document.body)
.on('shown', '.modal', function () { $body.addClass('modal-open') }) .on('shown', '.modal', function () { $body.addClass('modal-open') })
.on('hidden', '.modal', function () { $body.removeClass('modal-open') }) .on('hidden', '.modal', function () { $body.removeClass('modal-open') })

File diff suppressed because one or more lines are too long

View File

@ -241,7 +241,7 @@
}) })
}) })
var $body = $('body') var $body = $(document.body)
.on('shown', '.modal', function () { $body.addClass('modal-open') }) .on('shown', '.modal', function () { $body.addClass('modal-open') })
.on('hidden', '.modal', function () { $body.removeClass('modal-open') }) .on('hidden', '.modal', function () { $body.removeClass('modal-open') })