Fixes smooth scroll effect
authorMatthias Schmidt <gravatronics@live.com>
Mon, 27 Feb 2012 18:45:53 +0000 (19:45 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 27 Feb 2012 18:45:53 +0000 (19:45 +0100)
wcfsetup/install/files/js/WCF.js

index 0c851cdb2992a556b46fb55c5f90e8418b59cd88..00779e01385e4d59f663634aceac067ca957495c 100644 (file)
@@ -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;