Selected view in Explorer is now visible

fixes #6
This commit is contained in:
2022-08-04 22:26:51 +02:00
parent adbd09c060
commit 56fd55d09d
4 changed files with 20 additions and 6 deletions

View File

@ -527,6 +527,8 @@ jQuery(document).ready(function($)
{
$("table").hide();
$("#gallery").show();
$(".style-select.frame").addClass('active');
$(".style-select.list").removeClass('active');
window.localStorage.setItem('explorer-view', 'gallery');
}
@ -534,6 +536,8 @@ jQuery(document).ready(function($)
{
$("#gallery").hide();
$("table").show();
$(".style-select.frame").removeClass('active');
$(".style-select.list").addClass('active');
window.localStorage.setItem('explorer-view', 'table');
}
@ -545,11 +549,11 @@ jQuery(document).ready(function($)
{
if (res)
{
explorerView = window.localStorage.getItem('explorer-view');
if (explorerView == "gallery")
setGallery();
else if (explorerView == "table")
setTable();
explorerView = window.localStorage.getItem('explorer-view');
if (explorerView == "gallery")
setGallery();
else if (explorerView == "table")
setTable();
}
}