1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 03:41:19 +02:00
This commit is contained in:
Jacob Thornton
2013-07-24 20:21:23 -07:00
parent a282dba58f
commit aad910465c
3 changed files with 11 additions and 11 deletions

View File

@@ -232,10 +232,10 @@
.one('hide', function () {
$this.is(':visible') && $this.focus()
})
})
})
var $body = $(document.body)
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
var $body = $(document.body)
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
}(window.jQuery);