From a0cb72f9ae27ded4cf3516e0d3edd042293d9e39 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 28 Aug 2011 16:36:44 -0700 Subject: change window to 'body' --- examples/assets/js/bootstrap-dropdown.js | 2 +- examples/assets/js/bootstrap-modal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/assets/js/bootstrap-dropdown.js b/examples/assets/js/bootstrap-dropdown.js index fd5bd7978..b319c818c 100644 --- a/examples/assets/js/bootstrap-dropdown.js +++ b/examples/assets/js/bootstrap-dropdown.js @@ -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 () { diff --git a/examples/assets/js/bootstrap-modal.js b/examples/assets/js/bootstrap-modal.js index 8e782a37e..d03651faf 100644 --- a/examples/assets/js/bootstrap-modal.js +++ b/examples/assets/js/bootstrap-modal.js @@ -14,7 +14,7 @@ /* SHARED VARS * =========== */ - var $window = $(window) + var $window = $('body') , transitionEnd // set CSS transition event type -- cgit v1.2.3