Hide sidebar when navigating to smart album
This commit is contained in:
parent
a0c33bb4a0
commit
8a267c05c5
@ -185,6 +185,7 @@ lychee.load = function() {
|
||||
|
||||
// Show Album
|
||||
if (visible.photo()) view.photo.hide()
|
||||
if (visible.sidebar() && (albumID==='0' || albumID==='f' || albumID==='s' || albumID==='r')) sidebar.toggle()
|
||||
if (album.json && albumID==album.json.id) view.album.title()
|
||||
else album.load(albumID)
|
||||
|
||||
|
@ -320,7 +320,7 @@ sidebar.createStructure.album = function(data) {
|
||||
|
||||
sidebar.render = function(structure) {
|
||||
|
||||
if (structure==null || structure==='') return false
|
||||
if (structure==null || structure==='' || structure===false) return false
|
||||
|
||||
let html = ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user