diff --git a/templates/tag.html b/templates/tag.html index 9fec88c..3d36ae4 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -93,6 +93,7 @@ function showList(jsonData){ showLabels.setAttribute("style","background-color:"+jsonData["postListJson"][i]['labelColor']); showLabels.innerHTML=jsonData["postListJson"][i]['label']; showLabels.setAttribute("href",'#'+jsonData["postListJson"][i]['label']); + showLabels.setAttribute("onclick",'javascript:location.reload();'); tagLable.appendChild(showLabels); } @@ -138,7 +139,5 @@ function showList(jsonData){ } } -window.onhashchange=function(event){location.reload();} - {% endblock %}