forked from MarseyWorld/MarseyWorld
same as last commit
parent
25e50be552
commit
5d846e64c7
|
@ -1,7 +1,7 @@
|
||||||
function removeComment(t,post_id,button1,button2,cls) {
|
function removeComment(t,post_id,button1,button2,cls) {
|
||||||
url="/remove_comment/"+post_id
|
url="/remove_comment/"+post_id
|
||||||
|
|
||||||
post_toast(t,url)
|
post_toast(t,url,button1,button2,cls)
|
||||||
|
|
||||||
if (window.location.pathname == '/admin/reported/comments')
|
if (window.location.pathname == '/admin/reported/comments')
|
||||||
{
|
{
|
||||||
|
@ -15,15 +15,13 @@ function removeComment(t,post_id,button1,button2,cls) {
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
document.getElementById("context").classList.add("banned");
|
document.getElementById("context").classList.add("banned");
|
||||||
}
|
}
|
||||||
document.getElementById(button1).classList.toggle(cls);
|
|
||||||
document.getElementById(button2).classList.toggle(cls);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function approveComment(t,post_id,button1,button2,cls) {
|
function approveComment(t,post_id,button1,button2,cls) {
|
||||||
url="/approve_comment/"+post_id
|
url="/approve_comment/"+post_id
|
||||||
|
|
||||||
post_toast(t,url)
|
post_toast(t,url,button1,button2,cls)
|
||||||
|
|
||||||
if (window.location.pathname == '/admin/reported/comments')
|
if (window.location.pathname == '/admin/reported/comments')
|
||||||
{
|
{
|
||||||
|
@ -37,8 +35,6 @@ function approveComment(t,post_id,button1,button2,cls) {
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
document.getElementById("context").classList.remove("banned");
|
document.getElementById("context").classList.remove("banned");
|
||||||
}
|
}
|
||||||
document.getElementById(button1).classList.toggle(cls);
|
|
||||||
document.getElementById(button2).classList.toggle(cls);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue