rustbook: Fixes display of navigation links in README.html.

This commit is contained in:
Johannes Oertel 2015-04-25 00:21:13 +02:00
parent 2214860d4a
commit 7151529f73

View File

@ -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);