2 parents 3f8eae9 + 0189035 commit 74f6561Copy full SHA for 74f6561
1 file changed
extensions/pd/cookieConsent.ajax.js
@@ -68,13 +68,13 @@
68
script.remove();
69
},
70
closeCookieConsent: function (settings) {
71
- var $modal = settings.nette.form.closest('.js-cookie-modal');
72
- 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);
73
74
- $modal.addClass('cookie-modal--close');
+ $consentEl.addClass('js-cookie-consent--close');
75
76
setTimeout(function() {
77
- $modal.remove();
+ $consentEl.remove();
78
}, closingDuration);
79
}
80
});
0 commit comments