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 5c0ac6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support/jsdoc/jsdoc-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ $(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);
$('#main').animate({ scrollTop: $el.offsetTop - 60 }, 500);
var $el = document.getElementById(suggestion);
$('#main-container').animate({ scrollTop: $el.offsetTop - 60 }, 500);
}
});

Expand Down

0 comments on commit 5c0ac6e

Please sign in to comment.