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) {
|
function nntpchan_report(msgid, msgid_hash, refid, refid_hash) {
|
||||||
var e = document.getElementById("modactions");
|
var e = document.getElementById("nntpchan_censon_actions");
|
||||||
if (!e) return;
|
if (!e) return;
|
||||||
|
if(refid == msgid) {
|
||||||
|
nntp_report_thread(refid_hash);
|
||||||
|
} else {
|
||||||
e.value += "delete "+msgid+"\n";
|
e.value += "delete "+msgid+"\n";
|
||||||
|
}
|
||||||
show_censortools();
|
show_censortools();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<div class="postreport">
|
<div class="postreport">
|
||||||
<label for="report_{{post.PostHash}}">[x]</label>
|
<label for="report_{{post.PostHash}}">[x]</label>
|
||||||
<input type="checkbox" id="report_{{post.PostHash}}">
|
<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">
|
<div class="mod-delete">
|
||||||
[delete]
|
[delete]
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user