From c4ba5ea64eb5bf7273f1bb80d943c71adaa36ca5 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Tue, 4 Feb 2014 21:39:17 +0100 Subject: [PATCH] Show edit icon on tags --- assets/js/modules/build.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/modules/build.js b/assets/js/modules/build.js index ffb937e..e396823 100644 --- a/assets/js/modules/build.js +++ b/assets/js/modules/build.js @@ -244,7 +244,7 @@ build = { tags: function(tags, forView) { var html = "", - editTagsHTML; + editTagsHTML = (forView===true||lychee.publicMode) ? "" : " " + build.editIcon("edit_tags"); if (tags!=="") { @@ -255,10 +255,12 @@ build = { html += "" + tag + ""; }); + + html += editTagsHTML; } else { - editTagsHTML = (forView===true||lychee.publicMode) ? "" : " " + build.editIcon("edit_tags"); + html = "
No Tags" + editTagsHTML + "
"; }