Fixed top links for dynamically fetched content
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Oct 2012 14:07:26 +0000 (16:07 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Oct 2012 14:07:26 +0000 (16:07 +0200)
wcfsetup/install/files/js/WCF.js

index 0d4cc98ff2191e6c58fb216a6b360605cb4eef18..d0df0e1750e33756a7f749ce5ae39047b780d24f 100755 (executable)
@@ -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);