LocalStorage used for Explorer view

This commit is contained in:
2022-08-04 14:15:51 +02:00
parent 5ed5aff945
commit 8d39956724
2 changed files with 32 additions and 1 deletions

View File

@ -335,16 +335,17 @@ function userActionHandle(availableOptions)
}
// change display: gallery/table
$(".style-select.frame").click(function()
{
$("table").hide();
$("#gallery").show();
window.localStorage.setItem('explorer-view', 'gallery');
});
$(".style-select.list").click(function()
{
$("#gallery").hide();
$("table").show();
window.localStorage.setItem('explorer-view', 'table');
});
}