quick-post-controls.js: clone input element or Tinyboard will consider everyone a bot when posting
This commit is contained in:
parent
34fc25f716
commit
ccf17c3d6f
@ -39,7 +39,7 @@ $(document).ready(function(){
|
|||||||
'</form>');
|
'</form>');
|
||||||
post_form
|
post_form
|
||||||
.attr('action', $('form:first').attr('action'))
|
.attr('action', $('form:first').attr('action'))
|
||||||
.append($('input[name=board]:first'))
|
.append($('input[name=board]:first').clone())
|
||||||
.find('input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"])').keypress(function(e) {
|
.find('input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"])').keypress(function(e) {
|
||||||
if(e.which == 13) {
|
if(e.which == 13) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user