From 1bf5abab3153159d09f83f5512735da2144394d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatan=20Vasovi=C4=87?= Date: Thu, 19 Dec 2013 15:32:37 +0100 Subject: No leading pluses --- js/scrollspy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/scrollspy.js') 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') -- cgit v1.2.3