Hide sidebar when navigating to smart album

This commit is contained in:
Tobias Reich 2016-08-22 13:45:48 +02:00
parent a0c33bb4a0
commit 8a267c05c5
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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 = ''