From 270e81abc618de7373523fb5f1041854d44e7a97 Mon Sep 17 00:00:00 2001 From: Skriv <skrivelese@gmail.com> Date: Wed, 20 Mar 2019 22:30:51 +0100 Subject: [PATCH] quicklistJS --- src/js/quickListJS.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/quickListJS.js b/src/js/quickListJS.js index b9cfec3f418..66f91135143 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 -- GitLab