Skip to content

Commit

Permalink
Fix highlighting in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava authored and Sashko Stubailo committed Oct 28, 2014
1 parent c5e2d6b commit 57c4d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/client/full-api/tableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ Template.nav.helpers({
},

maybe_current: function () {
return Session.equals("section", this.id) ? "current" : "";
return Iron.Location.get().hash.split('/')[2] === this.id;
}
});

Template.nav_section.helpers({
depthIs: function (n) {
return this.depth === n;
}
});
});

0 comments on commit 57c4d46

Please sign in to comment.