aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authormfansler <[email protected]>2012-10-16 12:27:43 -0400
committermfansler <[email protected]>2012-10-16 12:27:43 -0400
commite24b46b7f3fb9eab5f34fb6e199d24781204c745 (patch)
treea02670c53f80a49c2dd8f2ad8cc9a975a8ef4742 /docs/assets/js/bootstrap.js
parentfa778792c5a00577cc2f59f70499b60bda2a8457 (diff)
downloadbootstrap-e24b46b7f3fb9eab5f34fb6e199d24781204c745.tar.xz
bootstrap-e24b46b7f3fb9eab5f34fb6e199d24781204c745.zip
fixes #5336: reorder focus() call to avoid scrolling
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index d1672330c..e96798039 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -794,13 +794,12 @@
that.$element
.addClass('in')
.attr('aria-hidden', false)
- .focus()
that.enforceFocus()
transition ?
- that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
- that.$element.trigger('shown')
+ that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
+ that.$element.focus().trigger('shown')
})
}
@@ -956,7 +955,8 @@
})
})
-}(window.jQuery);/* ===========================================================
+}(window.jQuery);
+/* ===========================================================
* bootstrap-tooltip.js v2.1.2
* http://twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery.tipsy by Jason Frame