aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-10-23 06:39:51 +0200
committerHeinrich Fenkart <[email protected]>2014-10-23 06:39:51 +0200
commit51f1f58be8d4d58e06dfd8ed2ed3ab6ea81295a5 (patch)
treec1a4e11e7b37670d31d595a5f7b72a42dfbd4c5d /docs/dist/js/bootstrap.js
parent9814256736fce32674c55a792b3b56185f50d47c (diff)
downloadbootstrap-51f1f58be8d4d58e06dfd8ed2ed3ab6ea81295a5.tar.xz
bootstrap-51f1f58be8d4d58e06dfd8ed2ed3ab6ea81295a5.zip
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
-rw-r--r--docs/dist/js/bootstrap.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js
index b28f5fce6..4e158621a 100644
--- a/docs/dist/js/bootstrap.js
+++ b/docs/dist/js/bootstrap.js
@@ -4,7 +4,16 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
+if (typeof jQuery === 'undefined') {
+ throw new Error('Bootstrap\'s JavaScript requires jQuery')
+}
+
++function ($) {
+ var version = $.fn.jquery.split(' ')[0].split('.')
+ if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {
+ throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')
+ }
+}(jQuery);
/* ========================================================================
* Bootstrap: transition.js v3.2.0
@@ -772,7 +781,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
if (!$items.length) return
- var index = $items.index($items.filter(':focus'))
+ var index = $items.index(e.target)
if (e.which == 38 && index > 0) index-- // up
if (e.which == 40 && index < $items.length - 1) index++ // down