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 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");
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user