Fixed: missing samesite attribute in cookies

Removes browser warning that cookies without this attribute will be deprecated
In addition all cookies have a default path = '/' to reference the complete site
This commit is contained in:
bergware
2022-03-22 19:43:12 +01:00
parent ff73c0f843
commit cee04f0a68
16 changed files with 66 additions and 66 deletions
@@ -130,10 +130,10 @@ function toggle_id(itemID){
var cookie = $.cookie('vmshow')||'';
if ((document.getElementById(itemID).style.display == 'none')) {
slideDownRows($('#'+itemID));
if (cookie.indexOf(itemID)<0) $.cookie('vmshow',cookie+itemID+',',{path:'/'});
if (cookie.indexOf(itemID)<0) $.cookie('vmshow',cookie+itemID+',');
} else {
slideUpRows($('#'+itemID));
if (cookie.indexOf(itemID)>=0) $.cookie('vmshow',cookie.replace(itemID+',',''),{path:'/'});
if (cookie.indexOf(itemID)>=0) $.cookie('vmshow',cookie.replace(itemID+',',''));
}
return false;
}