Hide sidebar when switching to album view
This commit is contained in:
parent
df8fad52c5
commit
24159c059e
@ -206,6 +206,9 @@ lychee.load = function() {
|
|||||||
// Trash data
|
// Trash data
|
||||||
photo.json = null;
|
photo.json = null;
|
||||||
|
|
||||||
|
// Hide sidebar
|
||||||
|
if (visible.sidebar()) sidebar.toggle();
|
||||||
|
|
||||||
// Show Album
|
// Show Album
|
||||||
if (visible.photo()) view.photo.hide();
|
if (visible.photo()) view.photo.hide();
|
||||||
if (album.json&&albumID==album.json.id) view.album.title();
|
if (album.json&&albumID==album.json.id) view.album.title();
|
||||||
@ -223,9 +226,11 @@ lychee.load = function() {
|
|||||||
album.json = null;
|
album.json = null;
|
||||||
photo.json = null;
|
photo.json = null;
|
||||||
|
|
||||||
|
// Hide sidebar
|
||||||
|
if (visible.sidebar()) sidebar.toggle();
|
||||||
|
|
||||||
// Show Albums
|
// Show Albums
|
||||||
if (visible.photo()) view.photo.hide();
|
if (visible.photo()) view.photo.hide();
|
||||||
if (visible.sidebar()) sidebar.toggle();
|
|
||||||
albums.load();
|
albums.load();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ sidebar.toggle = function() {
|
|||||||
if (visible.sidebar()||
|
if (visible.sidebar()||
|
||||||
visible.sidebarbutton()) {
|
visible.sidebarbutton()) {
|
||||||
|
|
||||||
header.dom('.button--info').toggleClass('active')
|
header.dom('.button--info').toggleClass('active');
|
||||||
lychee.content.toggleClass('sidebar');
|
lychee.content.toggleClass('sidebar');
|
||||||
sidebar.dom().toggleClass('active');
|
sidebar.dom().toggleClass('active');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user