i pray
This commit is contained in:
parent
132ba8c5f4
commit
ab660900c5
2030 changed files with 28940 additions and 5711 deletions
|
@ -4,18 +4,18 @@ function removeComment(post_id,button1,button2) {
|
|||
post(url)
|
||||
|
||||
try {
|
||||
document.getElementById("comment-"+post_id+"-only").classList.add("bg-red-200");
|
||||
document.getElementById("comment-"+post_id+"-only").classList.add("banned");
|
||||
} catch(e) {
|
||||
document.getElementById("context").classList.add("bg-red-200");
|
||||
document.getElementById("context").classList.add("banned");
|
||||
}
|
||||
|
||||
const button=document.getElementById("remove-"+post_id);
|
||||
var button=document.getElementById("remove-"+post_id);
|
||||
button.onclick=function(){approveComment(post_id)};
|
||||
button.innerHTML='<i class="fas fa-clipboard-check"></i>Approve'
|
||||
|
||||
if (typeof button1 !== 'undefined') {
|
||||
document.getElementById(button1).classList.toggle("md:block");
|
||||
document.getElementById(button2).classList.toggle("md:block");
|
||||
document.getElementById(button1).classList.toggle("d-md-inline-block");
|
||||
document.getElementById(button2).classList.toggle("d-md-inline-block");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -25,18 +25,18 @@ function approveComment(post_id,button1,button2) {
|
|||
post(url)
|
||||
|
||||
try {
|
||||
document.getElementById("comment-"+post_id+"-only").classList.remove("bg-red-200");
|
||||
document.getElementById("comment-"+post_id+"-only").classList.remove("banned");
|
||||
} catch(e) {
|
||||
document.getElementById("context").classList.remove("bg-red-200");
|
||||
document.getElementById("context").classList.remove("banned");
|
||||
}
|
||||
|
||||
const button=document.getElementById("remove-"+post_id);
|
||||
var button=document.getElementById("remove-"+post_id);
|
||||
button.onclick=function(){removeComment(post_id)};
|
||||
button.innerHTML='<i class="fas fa-trash-alt"></i>Remove'
|
||||
|
||||
if (typeof button1 !== 'undefined') {
|
||||
document.getElementById(button1).classList.toggle("md:block");
|
||||
document.getElementById(button2).classList.toggle("md:block");
|
||||
document.getElementById(button1).classList.toggle("d-md-inline-block");
|
||||
document.getElementById(button2).classList.toggle("d-md-inline-block");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,14 +46,14 @@ function removeComment2(post_id,button1,button2) {
|
|||
|
||||
post(url)
|
||||
|
||||
document.getElementById("comment-"+post_id+"-only").classList.add("bg-red-200");
|
||||
const button=document.getElementById("remove-"+post_id);
|
||||
document.getElementById("comment-"+post_id+"-only").classList.add("banned");
|
||||
var button=document.getElementById("remove-"+post_id);
|
||||
button.onclick=function(){approveComment(post_id)};
|
||||
button.innerHTML='<i class="fas fa-clipboard-check"></i>Approve'
|
||||
|
||||
if (typeof button1 !== 'undefined') {
|
||||
document.getElementById(button1).classList.toggle("hidden");
|
||||
document.getElementById(button2).classList.toggle("hidden");
|
||||
document.getElementById(button1).classList.toggle("d-none");
|
||||
document.getElementById(button2).classList.toggle("d-none");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -62,13 +62,13 @@ function approveComment2(post_id,button1,button2) {
|
|||
|
||||
post(url)
|
||||
|
||||
document.getElementById("comment-"+post_id+"-only").classList.remove("bg-red-200");
|
||||
const button=document.getElementById("remove-"+post_id);
|
||||
document.getElementById("comment-"+post_id+"-only").classList.remove("banned");
|
||||
var button=document.getElementById("remove-"+post_id);
|
||||
button.onclick=function(){removeComment(post_id)};
|
||||
button.innerHTML='<i class="fas fa-trash-alt"></i>Remove'
|
||||
|
||||
if (typeof button1 !== 'undefined') {
|
||||
document.getElementById(button1).classList.toggle("hidden");
|
||||
document.getElementById(button2).classList.toggle("hidden");
|
||||
document.getElementById(button1).classList.toggle("d-none");
|
||||
document.getElementById(button2).classList.toggle("d-none");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue