diff options
Diffstat (limited to 'docs/assets/js/bootstrap-modal.js')
-rw-r--r-- | docs/assets/js/bootstrap-modal.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/assets/js/bootstrap-modal.js b/docs/assets/js/bootstrap-modal.js index f7ae39652b..540ea0e0a0 100644 --- a/docs/assets/js/bootstrap-modal.js +++ b/docs/assets/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) { |