Allow accepting all cookies in consent banner and management component
Create cookie consent "all" when accept all cookies Set cookie duration to 365 days based on the AEPD's cookie usage guidelines. Note from the document: "Cookies with a duration of up to 24 months are considered acceptable as long as they are periodically updated." Reference: https://www.aepd.es/guias/guia-cookies.pdf
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
$("#cookies_consent_management").foundation("close");
|
||||
},
|
||||
initialize: function() {
|
||||
$(".accept-all-cookies").on("click", function() {
|
||||
App.Cookies.saveCookie("cookies_consent", "all", 365);
|
||||
App.CookiesConsent.hide();
|
||||
});
|
||||
|
||||
$(".accept-essential-cookies").on("click", function() {
|
||||
App.Cookies.saveCookie("cookies_consent", "essential", 365);
|
||||
App.CookiesConsent.hide();
|
||||
|
||||
Reference in New Issue
Block a user