fds
This commit is contained in:
parent
b1e7915f6a
commit
3be258d7c5
2 changed files with 4 additions and 4 deletions
|
@ -128,7 +128,7 @@ post_reply=function(id){
|
||||||
xhr.onload=function(){
|
xhr.onload=function(){
|
||||||
if (xhr.status==200) {
|
if (xhr.status==200) {
|
||||||
commentForm=document.getElementById('comment-form-space-'+id);
|
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'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||||
myToast.hide();
|
myToast.hide();
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||||
|
@ -163,7 +163,7 @@ comment_edit=function(id){
|
||||||
xhr.onload=function(){
|
xhr.onload=function(){
|
||||||
if (xhr.status==200) {
|
if (xhr.status==200) {
|
||||||
commentForm=document.getElementById('comment-text-'+id);
|
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()
|
document.getElementById('cancel-edit-'+id).click()
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||||
myToast.hide();
|
myToast.hide();
|
||||||
|
@ -201,7 +201,7 @@ post_comment=function(fullname){
|
||||||
xhr.onload=function(){
|
xhr.onload=function(){
|
||||||
if (xhr.status==200) {
|
if (xhr.status==200) {
|
||||||
commentForm=document.getElementById('comment-form-space-'+fullname);
|
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'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||||
myToast.hide();
|
myToast.hide();
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
{% if 'rdrama' not in request.host %}
|
{% if 'rdrama' not in request.host %}
|
||||||
{% if v %}
|
{% 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 "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