@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -340,12 +340,16 @@ function userActionHandle(availableOptions)
|
||||
{
|
||||
$("table").hide();
|
||||
$("#gallery").show();
|
||||
$(".style-select.frame").addClass('active');
|
||||
$(".style-select.list").removeClass('active');
|
||||
window.localStorage.setItem('explorer-view', 'gallery');
|
||||
});
|
||||
$(".style-select.list").click(function()
|
||||
{
|
||||
$("#gallery").hide();
|
||||
$("table").show();
|
||||
$(".style-select.frame").removeClass('active');
|
||||
$(".style-select.list").addClass('active');
|
||||
window.localStorage.setItem('explorer-view', 'table');
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user