Skip to content

Commit

Permalink
docs: update old id links to new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
hargasinski committed Oct 8, 2016
1 parent f71da34 commit 98dced3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions support/jsdoc/jsdoc-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,16 @@ $(function initSearchBar() {
$('#main').animate({ scrollTop: $el.offsetTop - 60 }, 500);
}
});

function fixOldHash() {
var hash = window.location.hash;
if (hash) {
var hashMatches = hash.match(/^#\.(\w+)$/);
if (hashMatches) {
window.location.hash = '#'+hashMatches[1];
}
}
}

fixOldHash();
});

0 comments on commit 98dced3

Please sign in to comment.