From 94bb56e8a3a56f336bb439df61af7279c551f925 Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Wed, 4 Sep 2013 15:34:59 +0000 Subject: [PATCH] Fix for bug #1301 --- xsl/webhelp/template/common/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xsl/webhelp/template/common/main.js b/xsl/webhelp/template/common/main.js index 5957fb435..bcc116fb5 100644 --- a/xsl/webhelp/template/common/main.js +++ b/xsl/webhelp/template/common/main.js @@ -19,10 +19,10 @@ $(document).ready(function() { && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target - || $('[name=' + this.hash.slice(1) +']'); + || $('[id=' + this.hash.slice(1) +']'); if (!(this.hash == "#searchDiv" || this.hash == "#treeDiv" || this.hash == "") && $target.length) { var targetOffset = $target.offset().top - 120; - $('html,body') + $('#content') .animate({scrollTop: targetOffset}, 200); return false; } -- 2.40.0