quick-post-controls.js: clone input element or Tinyboard will consider everyone a bot when posting

This commit is contained in:
Michael Save 2012-03-16 20:22:26 +11:00
parent 34fc25f716
commit ccf17c3d6f

View File

@ -39,7 +39,7 @@ $(document).ready(function(){
'</form>');
post_form
.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) {
if(e.which == 13) {
e.preventDefault();