From: Alexander Ebert Date: Wed, 24 Oct 2012 14:07:26 +0000 (+0200) Subject: Fixed top links for dynamically fetched content X-Git-Tag: 2.0.0_Beta_1~836^2~6^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0b74ad269e3dc11ae208c9033725d3342468f18;p=GitHub%2FWoltLab%2FWCF.git Fixed top links for dynamically fetched content --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0d4cc98ff2..d0df0e1750 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3750,7 +3750,7 @@ WCF.Effect.SmoothScroll = WCF.Effect.Scroll.extend({ */ init: function() { var self = this; - $('a[href$=#top],a[href$=#bottom]').click(function() { + $(document).on('click', 'a[href$=#top],a[href$=#bottom]', function() { var $target = $(this.hash); self.scrollTo($target, true);