diff options
| author | Jacob Thornton <[email protected]> | 2011-09-18 21:13:56 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-09-18 21:13:56 -0700 |
| commit | fc6effae51769c5bd7dfe0d1720606dd42c5f6e9 (patch) | |
| tree | 3c1a6679376a10449c3ce51bb17bc46a4f48e1ec | |
| parent | ac8001190a4dda635a5df72f88e638759511bfd8 (diff) | |
| download | bootstrap-fc6effae51769c5bd7dfe0d1720606dd42c5f6e9.tar.xz bootstrap-fc6effae51769c5bd7dfe0d1720606dd42c5f6e9.zip | |
listen to document for ie
| -rw-r--r-- | js/bootstrap-modal.js | 4 |
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') } } |
