Removed redundant if

This commit is contained in:
Tobias Reich 2014-07-21 00:14:29 +02:00
parent 6c18e63731
commit 2e701a5bdc
2 changed files with 12 additions and 8 deletions

View File

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