Skip to content

Commit

Permalink
docs: update searching to use new ids
Browse files Browse the repository at this point in the history
  • Loading branch information
hargasinski committed Oct 11, 2016
1 parent 59e9cda commit 959deb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/jsdoc/jsdoc-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ $(function initSearchBar() {
location.href = host + suggestion;
// handle searching from one of the source files or the home page
} else if (currentPage !== 'docs.html') {
location.href = host + 'docs.html#.' + suggestion;
location.href = host + 'docs.html#' + suggestion;
} else {
var $el = document.getElementById('.' + suggestion);
var $el = document.getElementById(suggestion);
$('#main').animate({ scrollTop: $el.offsetTop - 60 }, 500);
}
});
Expand Down

0 comments on commit 959deb3

Please sign in to comment.