aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-09-18 21:13:56 -0700
committerJacob Thornton <[email protected]>2011-09-18 21:13:56 -0700
commitfc6effae51769c5bd7dfe0d1720606dd42c5f6e9 (patch)
tree3c1a6679376a10449c3ce51bb17bc46a4f48e1ec /js
parentac8001190a4dda635a5df72f88e638759511bfd8 (diff)
downloadbootstrap-fc6effae51769c5bd7dfe0d1720606dd42c5f6e9.tar.xz
bootstrap-fc6effae51769c5bd7dfe0d1720606dd42c5f6e9.zip
listen to document for ie
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-modal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 4201d843c..2335c39d9 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -172,13 +172,13 @@
function escape() {
var that = this
if ( this.isShown && this.settings.keyboard ) {
- $(window).bind('keyup.modal', function ( e ) {
+ $(document).bind('keyup.modal', function ( e ) {
if ( e.which == 27 ) {
that.hide()
}
})
} else if ( !this.isShown ) {
- $(window).unbind('keyup.modal')
+ $(document).unbind('keyup.modal')
}
}