From b1536b02528ec0b139a3a4a83507aabf3f152c8f Mon Sep 17 00:00:00 2001
From: "B. Ninassi" <benjamin.ninassi@inria.fr>
Date: Mon, 22 Feb 2021 18:33:19 +0100
Subject: [PATCH] .

---
 templates/templates-parts/iai/footer-javascript.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/templates-parts/iai/footer-javascript.php b/templates/templates-parts/iai/footer-javascript.php
index 5e51d09..8c1575f 100644
--- a/templates/templates-parts/iai/footer-javascript.php
+++ b/templates/templates-parts/iai/footer-javascript.php
@@ -78,7 +78,7 @@
                     $('.iai-nav').removeClass('opened');
                 });
 
-                if(anchor1.offset().top && anchor2.offset().top && anchor3.offset().top && anchor4.offset().top){
+                if(anchor1.offset() && anchor2.offset() && anchor3.offset() && anchor4.offset()){
                   $(window).on("scroll", function()
                   {
                       var scrolltop = $(this).scrollTop();
-- 
GitLab