Archived
1
0
This commit is contained in:
Jeff Becker 2017-01-12 09:44:59 -05:00
parent 9e14d6ce30
commit 7096ea4e52
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ function nntpchan_submit_censor(form, regular_url) {
var result = document.getElementById("nntpchan_censor_result");
var show_result = function(msg) {
result.innerHTML = document.createTextNode(msg);
result.innerHTML = msg;
}
var handle_result = function(j) {
@ -52,6 +52,7 @@ function nntpchan_submit_censor(form, regular_url) {
parts[parts.length-1] = 'ctl';
var url = parts.join('/');
url += '?json';
console.log(url);
var captcha = form.captcha.value;
if(!captcha) {
show_result("no captcha solution provided");

View File

@ -95,7 +95,7 @@
</tr>
<tr>
<th>
<button onclick="nntpchan_submit_censor(document.getElementById('postform'), '{{post_url}}')">report</button>
<label onclick="nntpchan_submit_censor(document.getElementById('postform'), '{{post_url}}')">report</label>
</th>
<td>
<div id="nntpchan_censor_result"></div>