From: Jirka Kosek Date: Wed, 4 Sep 2013 15:34:59 +0000 (+0000) Subject: Fix for bug #1301 X-Git-Tag: release/1.79.1~6^2~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94bb56e8a3a56f336bb439df61af7279c551f925;p=docbook-dsssl Fix for bug #1301 --- 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; }