commit
8160781319
@ -1052,6 +1052,10 @@
|
||||
} else {
|
||||
submit.disabled = false;
|
||||
submit.value = 'Submit';
|
||||
if ($('#auto') && $('#auto').checked) {
|
||||
$('#auto').checked = false;
|
||||
$('#qr_form').submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!cooldown.duration) {
|
||||
@ -1099,7 +1103,7 @@
|
||||
qr.autohide.unset();
|
||||
} else {
|
||||
if (dialog) {
|
||||
if ($.config('Persistent QR' && g.REPLY)) {
|
||||
if ($.config('Persistent QR') && g.REPLY) {
|
||||
qr.refresh(dialog);
|
||||
} else {
|
||||
$.rm(dialog);
|
||||
@ -1186,7 +1190,7 @@
|
||||
name = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
||||
mail = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
||||
pass = (m = c.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value;
|
||||
html = " <div class=move> <input class=inputtext type=text name=name placeholder=Name form=qr_form value=\"" + name + "\"> Quick Reply <input type=checkbox id=autohide title=autohide> <a name=close title=close>X</a> </div> <form name=post action=http://sys.4chan.org/" + g.BOARD + "/post method=POST enctype=multipart/form-data target=iframe id=qr_form> <input type=hidden name=MAX_FILE_SIZE value=" + MAX_FILE_SIZE + "> <input type=hidden name=resto value=" + THREAD_ID + "> <input type=hidden name=recaptcha_challenge_field value=" + challenge + "> <div><input class=inputtext type=text name=email placeholder=E-mail value=\"" + mail + "\"></div> <div><input class=inputtext type=text name=sub placeholder=Subject><input type=submit value=" + submitValue + " id=com_submit " + submitDisabled + "></div> <div><textarea class=inputtext name=com placeholder=Comment></textarea></div> <div><img src=" + src + "></div> <div><input class=inputtext type=text name=recaptcha_response_field placeholder=Verification required autocomplete=off></div> <div><input type=file name=upfile></div> <div><input class=inputtext type=password name=pwd maxlength=8 placeholder=Password value=\"" + pass + "\"><input type=hidden name=mode value=regist></div> </form> <div id=error class=error></div> ";
|
||||
html = " <div class=move> <input class=inputtext type=text name=name placeholder=Name form=qr_form value=\"" + name + "\"> Quick Reply <input type=checkbox id=autohide title=autohide> <a name=close title=close>X</a> </div> <form name=post action=http://sys.4chan.org/" + g.BOARD + "/post method=POST enctype=multipart/form-data target=iframe id=qr_form> <input type=hidden name=MAX_FILE_SIZE value=" + MAX_FILE_SIZE + "> <input type=hidden name=resto value=" + THREAD_ID + "> <input type=hidden name=recaptcha_challenge_field value=" + challenge + "> <div><input class=inputtext type=text name=email placeholder=E-mail value=\"" + mail + "\"></div> <div><input class=inputtext type=text name=sub placeholder=Subject><input type=submit value=" + submitValue + " id=com_submit " + submitDisabled + "><label><input type=checkbox id=auto>auto</label></div> <div><textarea class=inputtext name=com placeholder=Comment></textarea></div> <div><img src=" + src + "></div> <div><input class=inputtext type=text name=recaptcha_response_field placeholder=Verification required autocomplete=off></div> <div><input type=file name=upfile></div> <div><input class=inputtext type=password name=pwd maxlength=8 placeholder=Password value=\"" + pass + "\"><input type=hidden name=mode value=regist></div> </form> <div id=error class=error></div> ";
|
||||
dialog = ui.dialog('qr', {
|
||||
top: '0px',
|
||||
left: '0px'
|
||||
@ -1195,6 +1199,7 @@
|
||||
return e.stopPropagation();
|
||||
});
|
||||
$.bind($('#autohide', dialog), 'click', qr.cb.autohide);
|
||||
$.bind($('#auto', dialog), 'click', qr.autohide.set);
|
||||
$.bind($('img', dialog), 'click', Recaptcha.reload);
|
||||
if ($('.postarea label')) {
|
||||
spoiler = $.el('label', {
|
||||
|
||||
@ -799,6 +799,9 @@ cooldown =
|
||||
else
|
||||
submit.disabled = false
|
||||
submit.value = 'Submit'
|
||||
if $('#auto') and $('#auto').checked
|
||||
$('#auto').checked = false
|
||||
$('#qr_form').submit()
|
||||
|
||||
window.clearInterval cooldown.interval unless cooldown.duration
|
||||
|
||||
@ -835,7 +838,7 @@ qr =
|
||||
qr.autohide.unset()
|
||||
else # success
|
||||
if dialog
|
||||
if $.config 'Persistent QR' and g.REPLY
|
||||
if $.config('Persistent QR') and g.REPLY
|
||||
qr.refresh dialog
|
||||
else
|
||||
$.rm dialog
|
||||
@ -926,7 +929,7 @@ qr =
|
||||
<input type=hidden name=resto value=#{THREAD_ID}>
|
||||
<input type=hidden name=recaptcha_challenge_field value=#{challenge}>
|
||||
<div><input class=inputtext type=text name=email placeholder=E-mail value=\"#{mail}\"></div>
|
||||
<div><input class=inputtext type=text name=sub placeholder=Subject><input type=submit value=#{submitValue} id=com_submit #{submitDisabled}></div>
|
||||
<div><input class=inputtext type=text name=sub placeholder=Subject><input type=submit value=#{submitValue} id=com_submit #{submitDisabled}><label><input type=checkbox id=auto>auto</label></div>
|
||||
<div><textarea class=inputtext name=com placeholder=Comment></textarea></div>
|
||||
<div><img src=#{src}></div>
|
||||
<div><input class=inputtext type=text name=recaptcha_response_field placeholder=Verification required autocomplete=off></div>
|
||||
@ -939,6 +942,7 @@ qr =
|
||||
|
||||
$.bind $('input[name=name]', dialog), 'mousedown', (e) -> e.stopPropagation()
|
||||
$.bind $('#autohide', dialog), 'click', qr.cb.autohide
|
||||
$.bind $('#auto', dialog), 'click', qr.autohide.set
|
||||
$.bind $('img', dialog), 'click', Recaptcha.reload
|
||||
|
||||
if $ '.postarea label'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user