Skip to content

Commit

Permalink
rustbook: Fixes display of navigation links in README.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
jooert committed Apr 24, 2015
1 parent 2214860 commit 7151529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustbook/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ document.addEventListener("DOMContentLoaded", function(event) {
}
for (var i = 0; i < toc.length; i++) {
if (toc[i].attributes['href'].value === href) {
if (toc[i].attributes['href'].value.split('/').pop() === href) {
var nav = document.createElement('p');
if (i > 0) {
var prevNode = toc[i-1].cloneNode(true);
Expand Down

0 comments on commit 7151529

Please sign in to comment.