diff --git a/files/templates/ban_modal.html b/files/templates/ban_modal.html
index 77c9d9496..11d722565 100644
--- a/files/templates/ban_modal.html
+++ b/files/templates/ban_modal.html
@@ -15,7 +15,6 @@
xhr.onload = function(){
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
document.getElementById('toast-post-success-text').innerHTML = `@${name} banned`;
}
diff --git a/files/templates/comments.html b/files/templates/comments.html
index 2bc851398..cc28e2805 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -20,7 +20,6 @@
xhr.onload = function() {
if (xhr.status >= 200 && xhr.status < 300) {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
try {
document.getElementById('toast-post-success-text').innerText = JSON.parse(xhr.response)["message"];
@@ -40,7 +39,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
document.getElementById('toast-post-error-text').innerText = "Error. Try again later.";
return false
@@ -169,7 +167,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
}
else {
@@ -177,7 +174,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
commentError.textContent = JSON.parse(xhr.response)["error"];
}
@@ -205,7 +201,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
}
else {
@@ -213,7 +208,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
}
@@ -245,14 +239,12 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
}
else {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
commentError.textContent = JSON.parse(xhr.response)["error"];
diff --git a/files/templates/settings_blocks.html b/files/templates/settings_blocks.html
index b8d02691b..4d0bff4cb 100644
--- a/files/templates/settings_blocks.html
+++ b/files/templates/settings_blocks.html
@@ -151,7 +151,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
exileError.textContent = JSON.parse(xhr.response)["error"];
diff --git a/files/templates/submission.html b/files/templates/submission.html
index c195c12f3..01de1c5f5 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -56,7 +56,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
}
else {
@@ -64,7 +63,6 @@
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
commentError.textContent = JSON.parse(xhr.response)["error"];
@@ -198,7 +196,7 @@
{% if v %}
-
+
{% if v.admin_level >=3 or v.id == p.author.id and v.paid_dues %}
diff --git a/files/templates/userpage.html b/files/templates/userpage.html
index 7115a47d3..496f4c8b8 100644
--- a/files/templates/userpage.html
+++ b/files/templates/userpage.html
@@ -64,9 +64,8 @@
if (xhr.status >= 200 && xhr.status < 300) {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
-
+
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
- myToast.hide();
myToast.show();
try {
@@ -85,7 +84,6 @@
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
- myToast.hide();
myToast.show();
try {