mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 11:51:23 +02:00
change window to 'body'
This commit is contained in:
2
examples/assets/js/bootstrap-dropdown.js
vendored
2
examples/assets/js/bootstrap-dropdown.js
vendored
@@ -7,7 +7,7 @@
|
||||
$('a.menu').parent('li').removeClass('open')
|
||||
}
|
||||
|
||||
$(window).bind("click", clearMenus)
|
||||
$('body').bind("click", clearMenus)
|
||||
|
||||
$.fn.dropdown = function ( options ) {
|
||||
return this.each(function () {
|
||||
|
2
examples/assets/js/bootstrap-modal.js
vendored
2
examples/assets/js/bootstrap-modal.js
vendored
@@ -14,7 +14,7 @@
|
||||
/* SHARED VARS
|
||||
* =========== */
|
||||
|
||||
var $window = $(window)
|
||||
var $window = $('body')
|
||||
, transitionEnd
|
||||
|
||||
// set CSS transition event type
|
||||
|
Reference in New Issue
Block a user