From 5217dbe9c21fa4b926a105f65929136907ab170c Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Mon, 31 Aug 2015 14:12:15 +0200 Subject: [PATCH] Consent on scroll --- tarteaucitron.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 28a1cf9..b5979c6 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -41,7 +41,7 @@ var tarteaucitron = { window.addEventListener("scroll", function () { var scrollPos = window.pageYOffset || document.documentElement.scrollTop, heightPosition; - if (document.getElementById('tarteaucitronAlertBig') !== null && tarteaucitron.showsmall && !tarteaucitron.highPrivacy) { + if (document.getElementById('tarteaucitronAlertBig') !== null && !tarteaucitron.highPrivacy) { if (document.getElementById('tarteaucitronAlertBig').style.display === 'block') { heightPosition = document.getElementById('tarteaucitronAlertBig').offsetHeight + 'px'; @@ -95,7 +95,7 @@ var tarteaucitron = { window.attachEvent("onscroll", function () { var scrollPos = window.pageYOffset || document.documentElement.scrollTop, heightPosition; - if (document.getElementById('tarteaucitronAlertBig') !== null && tarteaucitron.showsmall && !tarteaucitron.highPrivacy) { + if (document.getElementById('tarteaucitronAlertBig') !== null && !tarteaucitron.highPrivacy) { if (document.getElementById('tarteaucitronAlertBig').style.display === 'block') { heightPosition = document.getElementById('tarteaucitronAlertBig').offsetHeight + 'px'; @@ -191,7 +191,6 @@ var tarteaucitron = { } // global - tarteaucitron.showsmall = defaults.showAlertSmall; tarteaucitron.orientation = defaults.orientation; tarteaucitron.hashtag = defaults.hashtag; tarteaucitron.highPrivacy = defaults.highPrivacy;