diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index c3ee80530..859cacb62 100755 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -249,7 +249,7 @@ var _hmt = _hmt || []; document.getElementById("notic_content").style.display='none' } } - if( "{{.IsCourse}}" != true || "{{.IsCourse}}" =='') { + if(!("{{.IsCourse}}" == true || "{{.IsCourse}}" =='true')) { isShowNotice(); } diff --git a/templates/base/head_fluid.tmpl b/templates/base/head_fluid.tmpl index 47ee80add..92f606aa2 100644 --- a/templates/base/head_fluid.tmpl +++ b/templates/base/head_fluid.tmpl @@ -248,7 +248,7 @@ var _hmt = _hmt || []; document.getElementById("notic_content").style.display='none' } } - if( "{{.IsCourse}}" != true || "{{.IsCourse}}" =='') { + if(!("{{.IsCourse}}" == true || "{{.IsCourse}}" =='true')) { isShowNotice(); } \ No newline at end of file diff --git a/templates/base/head_home.tmpl b/templates/base/head_home.tmpl index f29240083..9792daf12 100644 --- a/templates/base/head_home.tmpl +++ b/templates/base/head_home.tmpl @@ -252,7 +252,7 @@ var _hmt = _hmt || []; document.getElementById("notic_content").style.display='none' } } - if( "{{.IsCourse}}" != true || "{{.IsCourse}}" =='') { + if(!("{{.IsCourse}}" == true || "{{.IsCourse}}" =='true')) { isShowNotice(); } \ No newline at end of file diff --git a/templates/base/head_pro.tmpl b/templates/base/head_pro.tmpl index 7793c7436..e6dbfc03e 100644 --- a/templates/base/head_pro.tmpl +++ b/templates/base/head_pro.tmpl @@ -249,7 +249,7 @@ var _hmt = _hmt || []; document.getElementById("notic_content").style.display='none' } } - if( "{{.IsCourse}}" != true || "{{.IsCourse}}" =='') { + if(!("{{.IsCourse}}" == true || "{{.IsCourse}}" =='true')) { isShowNotice(); } \ No newline at end of file diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl index bef9cd8b1..2dc1c35d1 100644 --- a/templates/org/header.tmpl +++ b/templates/org/header.tmpl @@ -47,7 +47,8 @@ } else { $('.alert').html(data.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut(); } - location.reload() + setTimeout("location.reload()",2000); + // location.reload() // if(data.code==0){ // alert("Join success") // location.reload() @@ -57,6 +58,7 @@ // } }, }); + } diff --git a/templates/org/home_courses.tmpl b/templates/org/home_courses.tmpl index 421ebf207..ef5d4b046 100644 --- a/templates/org/home_courses.tmpl +++ b/templates/org/home_courses.tmpl @@ -135,11 +135,11 @@