Use new album.isSmartID to check if it's a smart album

This commit is contained in:
Tobias Reich 2016-08-22 14:06:54 +02:00
parent 5bbac75481
commit 9548f43b06

View File

@ -187,7 +187,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 (visible.sidebar() && album.isSmartID(albumID)) sidebar.toggle()
if (album.json && albumID==album.json.id) view.album.title()
else album.load(albumID)