more
This commit is contained in:
parent
9e14d6ce30
commit
7096ea4e52
@ -32,7 +32,7 @@ function nntpchan_submit_censor(form, regular_url) {
|
|||||||
var result = document.getElementById("nntpchan_censor_result");
|
var result = document.getElementById("nntpchan_censor_result");
|
||||||
|
|
||||||
var show_result = function(msg) {
|
var show_result = function(msg) {
|
||||||
result.innerHTML = document.createTextNode(msg);
|
result.innerHTML = msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
var handle_result = function(j) {
|
var handle_result = function(j) {
|
||||||
@ -52,6 +52,7 @@ function nntpchan_submit_censor(form, regular_url) {
|
|||||||
parts[parts.length-1] = 'ctl';
|
parts[parts.length-1] = 'ctl';
|
||||||
var url = parts.join('/');
|
var url = parts.join('/');
|
||||||
url += '?json';
|
url += '?json';
|
||||||
|
console.log(url);
|
||||||
var captcha = form.captcha.value;
|
var captcha = form.captcha.value;
|
||||||
if(!captcha) {
|
if(!captcha) {
|
||||||
show_result("no captcha solution provided");
|
show_result("no captcha solution provided");
|
||||||
|
@ -95,7 +95,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<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>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<div id="nntpchan_censor_result"></div>
|
<div id="nntpchan_censor_result"></div>
|
||||||
|
Reference in New Issue
Block a user