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

pull/603/head
Tobias Reich 8 years ago
parent 5bbac75481
commit 9548f43b06

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

Loading…
Cancel
Save