Commit 2e701a5b authored by Tobias Reich's avatar Tobias Reich
Browse files

Removed redundant if

parent 6c18e637
......@@ -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>";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment