This commit is contained in:
Aevann1 2021-10-06 02:46:27 +02:00
parent b1e7915f6a
commit 3be258d7c5
2 changed files with 4 additions and 4 deletions

View file

@ -128,7 +128,7 @@ post_reply=function(id){
xhr.onload=function(){
if (xhr.status==200) {
commentForm=document.getElementById('comment-form-space-'+id);
commentForm.innerHTML=xhr.response.replace(/data-src/g, 'src');
commentForm.innerHTML=xhr.response.replace(/src="" data-src/g, 'src');
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
@ -163,7 +163,7 @@ comment_edit=function(id){
xhr.onload=function(){
if (xhr.status==200) {
commentForm=document.getElementById('comment-text-'+id);
commentForm.innerHTML=xhr.response.replace(/data-src/g, 'src');
commentForm.innerHTML=xhr.response.replace(/src="" data-src/g, 'src');
document.getElementById('cancel-edit-'+id).click()
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
@ -201,7 +201,7 @@ post_comment=function(fullname){
xhr.onload=function(){
if (xhr.status==200) {
commentForm=document.getElementById('comment-form-space-'+fullname);
commentForm.innerHTML=xhr.response.replace(/data-src/g, 'src');
commentForm.innerHTML=xhr.response.replace(/src="" data-src/g, 'src');
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));

View file

@ -52,7 +52,7 @@
{% if 'rdrama' not in request.host %}
{% if v %}
<script src="/assets/js/comments_v.js?v=11"></script>
<script src="/assets/js/comments_v.js?v=12"></script>
{% include "award_modal.html" %}
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}