Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-05-17 06:43:22 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-05-17 06:43:22 +0400
commit10c6db4b14e5eb26bd663996233e3ac3075d5cb4 (patch)
treee710c7ec5dbf1a014a0f923842ec84e949b8cde9 /docs/assets/js/bootstrap-modal.js
parent4b53778150c37bf9b45798b3c54330b2403ac915 (diff)
add proper role to dialog markup and cleanup modal logging
Diffstat (limited to 'docs/assets/js/bootstrap-modal.js')
-rw-r--r--docs/assets/js/bootstrap-modal.js10
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) {