diff --git a/files/assets/js/changelog.js b/files/assets/js/changelog.js index eeb32e87d..a5045cdbe 100644 --- a/files/assets/js/changelog.js +++ b/files/assets/js/changelog.js @@ -39,7 +39,7 @@ function post_toast2(url, button1, button2) { myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); - document.getElementById('toast-post-error-text').innerText = "Error. Try again later."; + document.getElementById('toast-post-error-text').innerText = "Error. Please try again later."; return false } } diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 111cd2865..3e0e4a81a 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -53,7 +53,7 @@ function post_toast3(url, button1, button2) { myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); - document.getElementById('toast-post-error-text').innerText = "Error. Try again later."; + document.getElementById('toast-post-error-text').innerText = "Error. Please try again later."; return false } }; @@ -167,11 +167,11 @@ post_reply=function(id){ myToast.show(); } else { - var commentError = document.getElementById("comment-error-text"); var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); + document.getElementById("comment-error-text").textContent = "Error. Please try again later."; } } xhr.send(form) @@ -182,8 +182,6 @@ post_reply=function(id){ comment_edit=function(id){ - var commentError = document.getElementById("comment-error-text"); - var form = new FormData(); form.append('formkey', formkey()); @@ -208,14 +206,14 @@ comment_edit=function(id){ myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); - commentError.textContent = JSON.parse(xhr.response)["error"]; + document.getElementById("comment-error-text").textContent = "Error. Please try again later."; } } xhr.send(form) } -post_comment=function(fullname, postId){ +post_comment=function(fullname){ var form = new FormData(); @@ -238,12 +236,11 @@ post_comment=function(fullname, postId){ myToast.show(); } else { - var commentError = document.getElementById("comment-error-text"); var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); - commentError.textContent = JSON.parse(xhr.response)["error"]; + document.getElementById("comment-error-text").textContent = "Error. Please try again later."; } } xhr.send(form) diff --git a/files/assets/js/default.js b/files/assets/js/default.js index 1f4048e33..bd4006f23 100644 --- a/files/assets/js/default.js +++ b/files/assets/js/default.js @@ -124,7 +124,7 @@ function post_toast2(url, button1, button2) { myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); - document.getElementById('toast-post-error-text').innerText = "Error. Try again later."; + document.getElementById('toast-post-error-text').innerText = "Error. Please try again later."; return false } } diff --git a/files/assets/js/header.js b/files/assets/js/header.js index 63b72e8d4..5782039d9 100644 --- a/files/assets/js/header.js +++ b/files/assets/js/header.js @@ -48,7 +48,7 @@ function post_toast(url, reload, data) { myToast.hide(); var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); myToast.show(); - document.getElementById('toast-post-error-text').innerText = "Error. Try again later."; + document.getElementById('toast-post-error-text').innerText = "Error. Please try again later."; return false } } diff --git a/files/assets/js/userpage.js b/files/assets/js/userpage.js index 4113d8ae0..a52abf96b 100644 --- a/files/assets/js/userpage.js +++ b/files/assets/js/userpage.js @@ -47,7 +47,7 @@ function post_toast_callback(url, data, callback) { } return false } catch(e) { - document.getElementById('toast-post-error-text').innerText = "Error. Try again later."; + document.getElementById('toast-post-error-text').innerText = "Error. Please try again later."; } return false; diff --git a/files/templates/changelog.html b/files/templates/changelog.html index 69d3f3663..0a8fc8a5f 100644 --- a/files/templates/changelog.html +++ b/files/templates/changelog.html @@ -3,7 +3,7 @@ {% block pagetitle %}Changelog{% endblock %} {% block desktopBanner %} - +
diff --git a/files/templates/comments.html b/files/templates/comments.html index 83375077f..ba934e117 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -33,14 +33,14 @@ {% if v %} {% include "award_modal.html" %} - + {% endif %} {% if v and v.admin_level == 6 %} - + {% endif %} - + {% endif %} diff --git a/files/templates/gif_modal.html b/files/templates/gif_modal.html index cffc1f16b..0ba530906 100644 --- a/files/templates/gif_modal.html +++ b/files/templates/gif_modal.html @@ -1,4 +1,4 @@ - +