1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 10:34:07 +02:00
This commit is contained in:
Mark Otto
2016-12-24 14:29:41 -08:00
parent 43ef8b129e
commit cd18ee8af6
29 changed files with 1570 additions and 2413 deletions

3
js/dist/carousel.js vendored
View File

@@ -234,13 +234,14 @@ var Carousel = function ($) {
if (/input|textarea/i.test(event.target.tagName)) {
return;
}
event.preventDefault();
switch (event.which) {
case ARROW_LEFT_KEYCODE:
event.preventDefault();
this.prev();
break;
case ARROW_RIGHT_KEYCODE:
event.preventDefault();
this.next();
break;
default:

File diff suppressed because one or more lines are too long

View File

@@ -237,7 +237,7 @@ var ScrollSpy = function ($) {
} else {
// todo (fat) this is kinda sus...
// recursively add actives to tested nav-links
$link.parents(Selector.LI).find(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
$link.parents(Selector.LI).find('> ' + Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
}
$(this._scrollElement).trigger(Event.ACTIVATE, {

File diff suppressed because one or more lines are too long