-persist
This commit is contained in:
parent
8496654e65
commit
9ca7ef0ef0
@ -1233,7 +1233,6 @@
|
||||
}));
|
||||
$.bind(window, 'message', QR.receive);
|
||||
$('#recaptcha_response_field').id = '';
|
||||
QR.dialog();
|
||||
holder = $('#recaptcha_challenge_field_holder');
|
||||
$.bind(holder, 'DOMNodeInserted', QR.challengeNode);
|
||||
return QR.challengeNode({
|
||||
@ -1278,7 +1277,7 @@
|
||||
QR.el = ui.dialog('qr', {
|
||||
top: '0',
|
||||
left: '0'
|
||||
}, " <a class=close title=close>X</a><input type=checkbox id=autohide title=autohide> <div class=move><input placeholder=Name name=name form=qr_form>Quick Reply</div> <form enctype=multipart/form-data method=post action=http://sys.4chan.org/" + g.BOARD + "/post target=iframe id=qr_form> <input type=hidden name=resto value=" + g.THREAD_ID + "> <input type=hidden name=mode value=regist> <input type=hidden name=recaptcha_challenge_field id=challenge> <input type=hidden name=recaptcha_response_field id=response> <div><input placeholder=Email name=email></div> <div><input placeholder=Subject name=sub><button>Submit</button></div> <div><textarea placeholder=Comment name=com>" + text + "</textarea></div> <div><img></div> <div><input placeholder=Verification autocomplete=off id=recaptcha_response_field><span id=cl>" + ($.get('captchas', []).length) + " captchas</span></div> <div><input name=upfile type=file></div> <div><input placeholder=Password name=pwd type=password></div> </form> <a class=error></a> ");
|
||||
}, " <a class=close title=close>X</a><input type=checkbox id=autohide title=autohide> <div class=move><input placeholder=Name name=name form=qr_form>Quick Reply</div> <form enctype=multipart/form-data method=post action=http://sys.4chan.org/" + g.BOARD + "/post target=iframe id=qr_form> <input type=hidden name=resto value=" + g.THREAD_ID + "> <input type=hidden name=mode value=regist> <input type=hidden name=recaptcha_challenge_field id=challenge> <input type=hidden name=recaptcha_response_field id=response> <div><input placeholder=Email name=email></div> <div><input placeholder=Subject name=sub><button>Submit</button></div> <div><textarea placeholder=Comment name=com>" + text + "</textarea></div> <div><img src=http://www.google.com/recaptcha/api/image?c=" + QR.captcha.challenge + "></div> <div><input placeholder=Verification autocomplete=off id=recaptcha_response_field><span id=cl>" + ($.get('captchas', []).length) + " captchas</span></div> <div><input name=upfile type=file></div> <div><input placeholder=Password name=pwd type=password></div> </form> <a class=error></a> ");
|
||||
$.bind($('form', QR.el), 'submit', QR.submit);
|
||||
$.bind($('#recaptcha_response_field', QR.el), 'keydown', QR.keydown);
|
||||
$.append(d.body, QR.el);
|
||||
|
||||
@ -969,7 +969,6 @@ QR =
|
||||
$.bind window, 'message', QR.receive
|
||||
# nuke id so qr's field focuses on recaptcha reload, instead of normal form's
|
||||
$('#recaptcha_response_field').id = ''
|
||||
QR.dialog()
|
||||
holder = $ '#recaptcha_challenge_field_holder'
|
||||
$.bind holder, 'DOMNodeInserted', QR.challengeNode
|
||||
QR.challengeNode target: holder.firstChild
|
||||
@ -1007,7 +1006,7 @@ QR =
|
||||
<div><input placeholder=Email name=email></div>
|
||||
<div><input placeholder=Subject name=sub><button>Submit</button></div>
|
||||
<div><textarea placeholder=Comment name=com>#{text}</textarea></div>
|
||||
<div><img></div>
|
||||
<div><img src=http://www.google.com/recaptcha/api/image?c=#{QR.captcha.challenge}></div>
|
||||
<div><input placeholder=Verification autocomplete=off id=recaptcha_response_field><span id=cl>#{$.get('captchas', []).length} captchas</span></div>
|
||||
<div><input name=upfile type=file></div>
|
||||
<div><input placeholder=Password name=pwd type=password></div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user