diff options
author | Hubert Argasinski <argasinski.hubert@gmail.com> | 2016-10-11 15:47:54 -0400 |
---|---|---|
committer | Hubert Argasinski <argasinski.hubert@gmail.com> | 2016-10-11 15:56:24 -0400 |
commit | 5c0ac6edac3dd12cb0a2537544e79bd5bdec86a3 (patch) | |
tree | f756d86d0c245c7ad26d6e9a570e70499961e463 /support | |
parent | 59e9cdac24b7e02ef57cc9a1863cf6ff4b07a0ae (diff) | |
download | async-5c0ac6edac3dd12cb0a2537544e79bd5bdec86a3.tar.gz |
docs: update searching to use new ids
Diffstat (limited to 'support')
-rw-r--r-- | support/jsdoc/jsdoc-custom.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/jsdoc/jsdoc-custom.js b/support/jsdoc/jsdoc-custom.js index ee92203..fc22991 100644 --- a/support/jsdoc/jsdoc-custom.js +++ b/support/jsdoc/jsdoc-custom.js @@ -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); } }); |