aboutsummaryrefslogtreecommitdiff
path: root/js/scrollspy.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/scrollspy.js')
-rw-r--r--js/scrollspy.js8
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')