Skip to content

Commit

Permalink
Fix #843
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Dec 13, 2013
1 parent f8a0dac commit 1de2563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/ui/js/toc.ts
Expand Up @@ -215,6 +215,7 @@ module UI {
var href = a.href;
var filename = $scope.getFilename(href, a.getAttribute('file-extension'));
$(a).click((e) => {
log.debug("Clicked: ", e);
e.preventDefault();
var chapterId = $scope.getTarget(filename);
$location.search("chapter", chapterId);
Expand Down Expand Up @@ -254,7 +255,7 @@ module UI {
if (offset) {
top = offset.top - offsetTop;
}
$('body').animate({
$('body,html').animate({
scrollTop: top
}, scrollDuration);
}
Expand Down

0 comments on commit 1de2563

Please sign in to comment.