mirror of
https://github.com/unraid/webgui.git
synced 2026-05-05 11:50:41 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user