From: Matthias Schmidt Date: Mon, 27 Feb 2012 18:45:53 +0000 (+0100) Subject: Fixes smooth scroll effect X-Git-Tag: 2.0.0_Beta_1~1299^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af2f9b23897542ca1fde6ad5d760ed3c2ac96092;p=GitHub%2FWoltLab%2FWCF.git Fixes smooth scroll effect --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0c851cdb29..00779e0138 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2872,7 +2872,7 @@ WCF.Effect.SmoothScroll.prototype = { * Initializes effect. */ init: function() { - $('a[href=#top],a[href=#bottom]').click(function() { + $('a[href$=#top],a[href$=#bottom]').click(function() { var $target = $(this.hash); if ($target.length) { var $targetOffset = $target.getOffsets().top;