From 826850ccd896654847a509d0e0e70f6ee1a40b12 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 21 Nov 2023 22:43:44 +0800 Subject: [PATCH] Update tag.html --- templates/tag.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/tag.html b/templates/tag.html index 30b034a..6a7d031 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -87,11 +87,11 @@ function showList(jsonData,tag){ if(!(tagList.includes(jsonData["postListJson"][i]['label']))){ tagList.push(jsonData["postListJson"][i]['label']); - let showLabels=document.createElement("a"); + let showLabels=document.createElement("button"); showLabels.setAttribute("class","Label"); showLabels.setAttribute("style","background-color:"+jsonData["postListJson"][i]['labelColor']); showLabels.innerHTML=jsonData["postListJson"][i]['label']; - showLabels.setAttribute("onclick",'javascript:updateShowTag("'+jsonData["postListJson"][i]['label']+'");'); + showLabels.setAttribute("onclick","javascript:updateShowTag('"+jsonData["postListJson"][i]['label']+"');"); tagLable.appendChild(showLabels); }