dfsdfs
This commit is contained in:
parent
5a52b9709b
commit
3547578a08
9 changed files with 9 additions and 7 deletions
|
@ -109,6 +109,7 @@ function delete_commentModal(id) {
|
||||||
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Deleting comment';
|
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Deleting comment';
|
||||||
this.disabled = true;
|
this.disabled = true;
|
||||||
post('/delete/comment/' + id)
|
post('/delete/comment/' + id)
|
||||||
|
xhr.onload = function() {location.reload(true);};
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,7 +30,7 @@ function post_toast(url, reload, data) {
|
||||||
document.getElementById('toast-post-success-text').innerText = "Action successful!";
|
document.getElementById('toast-post-success-text').innerText = "Action successful!";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reload == 1) {window.location.reload(true)}
|
if (reload == 1) {location.reload(true)}
|
||||||
return true
|
return true
|
||||||
|
|
||||||
} else if (xhr.status >= 300 && xhr.status < 400) {
|
} else if (xhr.status >= 300 && xhr.status < 400) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ function post(url) {
|
||||||
var form = new FormData()
|
var form = new FormData()
|
||||||
form.append("formkey", formkey());
|
form.append("formkey", formkey());
|
||||||
xhr.withCredentials=true;
|
xhr.withCredentials=true;
|
||||||
xhr.onload = function() {window.location.reload(true);};
|
xhr.onload = function() {location.reload(true);};
|
||||||
xhr.send(form);
|
xhr.send(form);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% include "award_modal.html" %}
|
{% include "award_modal.html" %}
|
||||||
<script src="/assets/js/comments_v.js?v=55"></script>
|
<script src="/assets/js/comments_v.js?v=56"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
var form = new FormData()
|
var form = new FormData()
|
||||||
form.append("formkey", formkey());
|
form.append("formkey", formkey());
|
||||||
xhr.withCredentials=true;
|
xhr.withCredentials=true;
|
||||||
|
xhr.onload = function() {location.reload(true);};
|
||||||
xhr.send(form);
|
xhr.send(form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<script src="/assets/js/header.js?v=53"></script>
|
<script src="/assets/js/header.js?v=54"></script>
|
||||||
|
|
||||||
<nav class="shadow shadow-md fixed-top">
|
<nav class="shadow shadow-md fixed-top">
|
||||||
{% if "rama" in request.host %}
|
{% if "rama" in request.host %}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
f.append("formkey", formkey());
|
f.append("formkey", formkey());
|
||||||
xhr.onload=function(){
|
xhr.onload=function(){
|
||||||
if (xhr.status<300) {
|
if (xhr.status<300) {
|
||||||
window.location.reload(true);
|
location.reload(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% include "emoji_modal.html" %}
|
{% include "emoji_modal.html" %}
|
||||||
{% include "gif_modal.html" %}
|
{% include "gif_modal.html" %}
|
||||||
|
|
||||||
<script src="/assets/js/settings_profile.js?v=55"></script>
|
<script src="/assets/js/settings_profile.js?v=56"></script>
|
||||||
|
|
||||||
<div id="posts" class="row">
|
<div id="posts" class="row">
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script src="/assets/js/comments_v.js?v=55"></script>
|
<script src="/assets/js/comments_v.js?v=56"></script>
|
||||||
{% include "award_modal.html" %}
|
{% include "award_modal.html" %}
|
||||||
{% include "emoji_modal.html" %}
|
{% include "emoji_modal.html" %}
|
||||||
{% include "gif_modal.html" %}
|
{% include "gif_modal.html" %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue