diff --git a/public/global.js b/public/global.js index 450b6525..b01d27e5 100644 --- a/public/global.js +++ b/public/global.js @@ -428,7 +428,7 @@ function mainInit(){ ev.preventDefault(); //$(this).unbind("click"); let target = this.closest("a").getAttribute("href"); - console.log("target", target); + console.log("target",target); let controls = this.closest(".controls"); let hadLikes = controls.classList.contains("has_likes"); @@ -570,7 +570,7 @@ function mainInit(){ $(".topic_list_title h1").text(that.innerText); }).catch(ex => { console.log("Unable to get script '"+url+"&js=1"+"'"); - console.log("ex", ex); + console.log("ex",ex); console.trace(); }); }); @@ -580,7 +580,7 @@ function mainInit(){ // TODO: Show a search button when JS is disabled? $(".widget_search_input").keypress(function(e) { - if (e.keyCode != '13') return; + if(e.keyCode!='13') return; event.preventDefault(); // TODO: Take mostviewed into account let url = "//"+window.location.host+window.location.pathname; @@ -615,7 +615,7 @@ function mainInit(){ rebindPaginator(); }).catch(ex => { console.log("Unable to get script '"+url+q+"&js=1"+"'"); - console.log("ex", ex); + console.log("ex",ex); console.trace(); }); }); @@ -648,7 +648,7 @@ function mainInit(){ $(".edit_fields").click(function(ev) { ev.preventDefault(); - if($(this).find("input").length !== 0) return; + if($(this).find("input").length!==0) return; //console.log("clicked .edit_fields"); var blockParent = $(this).closest('.editable_parent'); blockParent.find('.hide_on_edit').addClass("edit_opened"); @@ -796,7 +796,7 @@ function mainInit(){ console.log("date", date); let day = "0" + date.getDate(); let formattedTime = monthList[date.getMonth()] + " " + day.substr(-2) + " " + date.getFullYear(); - console.log("formattedTime", formattedTime); + console.log("formattedTime",formattedTime); this.innerText = formattedTime; }); @@ -833,8 +833,8 @@ function mainInit(){ } $("#poll_results_"+pollID+" .user_content").html("
"); - console.log("rawData", rawData); - console.log("series", data); + console.log("rawData",rawData); + console.log("series",data); Chartist.Pie('#poll_results_chart_'+pollID, { series: data, }, { @@ -903,8 +903,8 @@ function bindTopic() { $.ajax({ url: this.form.getAttribute("action"), - type: "POST", - dataType: "json", + type:"POST", + dataType:"json", data: { name: nameInput, status: statusInput, @@ -993,7 +993,7 @@ function bindTopic() { console.log("content.value", content.value); let item; - if(content.value == "") item = "
" + src.innerHTML + "
" + if(content.value=="") item = "
" + src.innerHTML + "
" else item = "\r\n
" + src.innerHTML + "
"; content.value = content.value + item; console.log("content.value", content.value); diff --git a/templates/account_logins.html b/templates/account_logins.html index d5ec8e0d..cb7071e9 100644 --- a/templates/account_logins.html +++ b/templates/account_logins.html @@ -6,7 +6,7 @@ {{range .ItemList}}
- {{if .Success}}{{lang "account_logins_success"}}{{else}}{{lang "account_logins_failure"}}"{{end}}
+ {{if .Success}}{{lang "account_logins_success"}}{{else}}{{lang "account_logins_failure"}}"{{end}}
{{.IP}}
diff --git a/templates/are_you_sure.html b/templates/are_you_sure.html index e9c3e4ae..3ac6d243 100644 --- a/templates/are_you_sure.html +++ b/templates/are_you_sure.html @@ -4,7 +4,7 @@

{{lang "areyousure_head"}}

-
{{.Something.Message}}

+
{{.Something.Message}}

{{lang "areyousure_continue"}}
diff --git a/templates/forum.html b/templates/forum.html index ec0f1c7b..6221c3c9 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -50,10 +50,10 @@ {{range .ItemList}}
- + {{.Title}} -
{{.Creator.Name}} +
{{.Creator.Name}} {{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}} {{if .IsClosed}} | 🔒︎{{end}} {{if .Sticky}} | 📍︎{{end}} diff --git a/templates/forum_gallery.html b/templates/forum_gallery.html index a13d80eb..4820ae18 100644 --- a/templates/forum_gallery.html +++ b/templates/forum_gallery.html @@ -51,7 +51,7 @@ {{.Title}} -
{{.Creator.Name}} +
{{.Creator.Name}}
-->