diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 4525ab57e..8f360a637 100755 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -230,7 +230,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{ diff --git a/templates/base/head_fluid.tmpl b/templates/base/head_fluid.tmpl index 227c50211..15c247c9d 100644 --- a/templates/base/head_fluid.tmpl +++ b/templates/base/head_fluid.tmpl @@ -231,7 +231,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{ diff --git a/templates/base/head_pro.tmpl b/templates/base/head_pro.tmpl index 13ea305c4..fdb03493f 100644 --- a/templates/base/head_pro.tmpl +++ b/templates/base/head_pro.tmpl @@ -232,7 +232,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{