From 8fee706eee5ad1daba73497f0ef45c457c467c99 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 12 Jun 2020 18:13:40 +0100 Subject: [PATCH] hiding tag icon when no tags selected --- public/js/settings.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/settings.js b/public/js/settings.js index c8e3d0b05..4a1fed2c4 100644 --- a/public/js/settings.js +++ b/public/js/settings.js @@ -131,7 +131,11 @@ function updateActiveTags(){ tagsString += $(tag).children('.title').text() + ', '; } }) - $(".pageTest #tagNotice").html(`${tagsString.substring(0, tagsString.length - 2)}`); + if(tagsString !== ""){ + $(".pageTest #tagNotice").html(`${tagsString.substring(0, tagsString.length - 2)}`); + }else{ + $(".pageTest #tagNotice").empty(); + } } //smooth caret