Archived
1
0

more censortools changes

This commit is contained in:
Jeff Becker 2017-01-12 09:37:23 -05:00
parent 228af0c5f4
commit 0eac006d52
2 changed files with 8 additions and 4 deletions

View File

@ -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;
if(refid == msgid) {
nntp_report_thread(refid_hash);
} else {
e.value += "delete "+msgid+"\n";
}
show_censortools();
}

View File

@ -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>