diff options
| author | Mark Otto <[email protected]> | 2013-12-19 14:06:01 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-19 14:06:01 -0800 |
| commit | 4a01acaf6772a9c4f317ae94381376b16109da3d (patch) | |
| tree | 13630876f01ef0cc39039ad53fea7a7b5e13a9d4 /js/scrollspy.js | |
| parent | caadd720846ba698ff02942139b36ff680b12521 (diff) | |
| parent | 1bf5abab3153159d09f83f5512735da2144394d6 (diff) | |
| download | bootstrap-4a01acaf6772a9c4f317ae94381376b16109da3d.tar.xz bootstrap-4a01acaf6772a9c4f317ae94381376b16109da3d.zip | |
Merge pull request #11941 from ZDroid/left-plus
No leading pluses
Diffstat (limited to 'js/scrollspy.js')
| -rw-r--r-- | js/scrollspy.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js index b41c27413..3393572b7 100644 --- a/js/scrollspy.js +++ b/js/scrollspy.js @@ -88,15 +88,15 @@ .parents('.active') .removeClass('active') - var selector = this.selector - + '[data-target="' + target + '"],' - + this.selector + '[href="' + target + '"]' + var selector = this.selector + + '[data-target="' + target + '"],' + + this.selector + '[href="' + target + '"]' var active = $(selector) .parents('li') .addClass('active') - if (active.parent('.dropdown-menu').length) { + if (active.parent('.dropdown-menu').length) { active = active .closest('li.dropdown') .addClass('active') |
