more censortools changes
This commit is contained in:
parent
228af0c5f4
commit
0eac006d52
@ -16,10 +16,14 @@ function nntpchan_report_thread(posthash) {
|
||||
}
|
||||
}
|
||||
|
||||
function nntpchan_report(msgid) {
|
||||
var e = document.getElementById("modactions");
|
||||
function nntpchan_report(msgid, msgid_hash, refid, refid_hash) {
|
||||
var e = document.getElementById("nntpchan_censon_actions");
|
||||
if (!e) return;
|
||||
e.value += "delete "+msgid+"\n";
|
||||
if(refid == msgid) {
|
||||
nntp_report_thread(refid_hash);
|
||||
} else {
|
||||
e.value += "delete "+msgid+"\n";
|
||||
}
|
||||
show_censortools();
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
<div class="postreport">
|
||||
<label for="report_{{post.PostHash}}">[x]</label>
|
||||
<input type="checkbox" id="report_{{post.PostHash}}">
|
||||
<div style="display: none;" onclick="nntpchan_report('{{post.MessageID}}', '{{post.Reference}}')">
|
||||
<div style="display: none;" onclick="nntpchan_report('{{post.MessageID}}', '{{post.PostHash}}', '{{post.Reference}}', '{{post.ReferenceHash}}')">
|
||||
<div class="mod-delete">
|
||||
[delete]
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user