Removed redundant if
This commit is contained in:
parent
6c18e63731
commit
2e701a5bdc
@ -54,10 +54,14 @@ build = {
|
||||
album += "<a>" + albumJSON.sysdate + "</a>";
|
||||
album += "</div>";
|
||||
|
||||
if(!lychee.publicMode&&albumJSON.star===1) album += "<a class='badge red icon-star'></a>";
|
||||
if(!lychee.publicMode&&albumJSON.public===1) album += "<a class='badge red icon-share'></a>";
|
||||
if(!lychee.publicMode&&albumJSON.unsorted===1) album += "<a class='badge red icon-reorder'></a>";
|
||||
if(!lychee.publicMode&&albumJSON.recent===1) album += "<a class='badge red icon-time'></a>";
|
||||
if (!lychee.publicMode) {
|
||||
|
||||
if(albumJSON.star===1) album += "<a class='badge red icon-star'></a>";
|
||||
if(albumJSON.public===1) album += "<a class='badge red icon-share'></a>";
|
||||
if(albumJSON.unsorted===1) album += "<a class='badge red icon-reorder'></a>";
|
||||
if(albumJSON.recent===1) album += "<a class='badge red icon-time'></a>";
|
||||
|
||||
}
|
||||
|
||||
album += "</div>";
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user