diff --git a/src/js/quickListJS.js b/src/js/quickListJS.js index b9cfec3f418ba29127880904a7d3437f5ab12dd8..66f91135143c858f09bd7aef04c43d3156ba3168 100644 --- a/src/js/quickListJS.js +++ b/src/js/quickListJS.js @@ -33,8 +33,8 @@ window.quickListBuildLinks = function () { var $this = $(this), $toElement = $this.attr('data-scroll-to'); // note the * 1 enforces $offset to be an integer, without // it we scroll to True, which goes nowhere fast. - var $offset = $this.attr('data-scroll-offset') * 1 || 0; - var $speed = $this.attr('data-scroll-speed') * 1 || 500; + var $offset = $this.attr('data-scroll-offset') * 1 || 0; + var $speed = $this.attr('data-scroll-speed') * 1 || 500; // Use javascript scrollTop animation for in page navigation. $('html, body').animate({ scrollTop: $($toElement).offset().top + $offset