diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-05-17 06:43:22 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-05-17 06:43:22 +0400 |
commit | 10c6db4b14e5eb26bd663996233e3ac3075d5cb4 (patch) | |
tree | e710c7ec5dbf1a014a0f923842ec84e949b8cde9 /js | |
parent | 4b53778150c37bf9b45798b3c54330b2403ac915 (diff) |
add proper role to dialog markup and cleanup modal logging
Diffstat (limited to 'js')
-rw-r--r-- | js/bootstrap-modal.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index f7ae39652b..540ea0e0a0 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -95,7 +95,8 @@ $('body').removeClass('modal-open') this.escape() - this.relaxFocus() + + $(document).off('focusin.modal') this.$element.removeClass('in') @@ -106,20 +107,13 @@ , enforceFocus: function () { var that = this - var console = window.console - console.log('attach'); $(document).on('focusin.modal', function (e) { - console.log('triggered'); if (that.$element[0] !== e.target && !that.$element.has(e.target).length) { that.$element.focus() } }) } - , relaxFocus: function () { - $(document).off('focus.modal') - } - , escape: function () { var that = this if (this.isShown && this.options.keyboard) { |