From 018903574549cba4728c0160882c666cf4e6fe19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C5=A0er=C3=BD?= Date: Fri, 14 Jan 2022 10:34:53 +0100 Subject: [PATCH] =?UTF-8?q?Pou=C5=BEit=C3=AD=20obecn=C4=9Bj=C5=A1=C3=AD=20?= =?UTF-8?q?class=20a=20CSS=20prom=C4=9Bnn=C3=BDch=20pro=20cookie=20consent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/pd/cookieConsent.ajax.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/pd/cookieConsent.ajax.js b/extensions/pd/cookieConsent.ajax.js index d0dc695..cc5dd01 100644 --- a/extensions/pd/cookieConsent.ajax.js +++ b/extensions/pd/cookieConsent.ajax.js @@ -68,13 +68,13 @@ script.remove(); }, closeCookieConsent: function (settings) { - var $modal = settings.nette.form.closest('.js-cookie-modal'); - var closingDuration = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--pdbox-closing-duration') || 0); + var $consentEl = settings.nette.form.closest('.js-cookie-consent'); + var closingDuration = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cookie-consent-closing-duration') || 0); - $modal.addClass('cookie-modal--close'); + $consentEl.addClass('js-cookie-consent--close'); setTimeout(function() { - $modal.remove(); + $consentEl.remove(); }, closingDuration); } });