Skip to content

Commit

Permalink
Remove active classes within the toc element, not from other navbars. f…
Browse files Browse the repository at this point in the history
…ix gfranko#9
  • Loading branch information
linuxonrails committed Dec 14, 2012
1 parent 3fa8106 commit ffa9211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/javascripts/jquery.tocify.js
Expand Up @@ -371,7 +371,7 @@
}

// Removes highlighting from all of the list item's
$("." + self.focusClass).removeClass(self.focusClass);
self.element.find("." + self.focusClass).removeClass(self.focusClass);

// Highlights the current list item that was clicked
$(this).addClass(self.focusClass);
Expand Down Expand Up @@ -483,7 +483,7 @@
if(self.options.highlightOnScroll && elem.length) {

// Removes highlighting from all of the list item's
$("." + self.focusClass).removeClass(self.focusClass);
self.element.find("." + self.focusClass).removeClass(self.focusClass);

// Highlights the corresponding list item
elem.addClass(self.focusClass);
Expand Down Expand Up @@ -785,4 +785,4 @@

});

})); //end of plugin
})); //end of plugin

0 comments on commit ffa9211

Please sign in to comment.