fuck yeah html5
This commit is contained in:
parent
33c12e20d5
commit
fe06a6fcca
21
4chan_x.js
21
4chan_x.js
@ -1019,7 +1019,7 @@
|
|||||||
return _results;
|
return _results;
|
||||||
},
|
},
|
||||||
submit: function(e) {
|
submit: function(e) {
|
||||||
var form, isQR, recaptcha;
|
var form, isQR;
|
||||||
form = e.target;
|
form = e.target;
|
||||||
isQR = form.parentNode.id === 'qr';
|
isQR = form.parentNode.id === 'qr';
|
||||||
if (isQR) {
|
if (isQR) {
|
||||||
@ -1035,19 +1035,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
recaptcha = $('input[name=recaptcha_response_field]', this);
|
qr.sage = $('input[name=email]', form).value === 'sage';
|
||||||
if (recaptcha.value) {
|
if (isQR) {
|
||||||
qr.sage = $('input[name=email]', form).value === 'sage';
|
return qr.autohide.set();
|
||||||
if (isQR) {
|
|
||||||
return qr.autohide.set();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
e.preventDefault();
|
|
||||||
alert('You forgot to type in the verification.');
|
|
||||||
recaptcha.focus();
|
|
||||||
if (isQR) {
|
|
||||||
return $('#error').textContent = 'You forgot to type in the verification.';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
quote: function(e) {
|
quote: function(e) {
|
||||||
@ -1147,7 +1137,8 @@
|
|||||||
$.append($('#qr_captcha', dialog), clone);
|
$.append($('#qr_captcha', dialog), clone);
|
||||||
$.extend($('input[name=recaptcha_response_field]', clone), {
|
$.extend($('input[name=recaptcha_response_field]', clone), {
|
||||||
placeholder: 'Verification',
|
placeholder: 'Verification',
|
||||||
className: 'inputtext'
|
className: 'inputtext',
|
||||||
|
required: true
|
||||||
});
|
});
|
||||||
form = dialog.lastElementChild;
|
form = dialog.lastElementChild;
|
||||||
$.bind(form, 'submit', qr.cb.submit);
|
$.bind(form, 'submit', qr.cb.submit);
|
||||||
|
|||||||
@ -784,18 +784,9 @@ qr =
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
recaptcha = $('input[name=recaptcha_response_field]', this)
|
qr.sage = $('input[name=email]', form).value == 'sage'
|
||||||
if recaptcha.value
|
if isQR
|
||||||
qr.sage = $('input[name=email]', form).value == 'sage'
|
qr.autohide.set()
|
||||||
if isQR
|
|
||||||
qr.autohide.set()
|
|
||||||
else
|
|
||||||
e.preventDefault()
|
|
||||||
alert 'You forgot to type in the verification.'
|
|
||||||
recaptcha.focus()
|
|
||||||
|
|
||||||
if isQR
|
|
||||||
$('#error').textContent = 'You forgot to type in the verification.'
|
|
||||||
|
|
||||||
quote: (e) ->
|
quote: (e) ->
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
@ -897,6 +888,7 @@ qr =
|
|||||||
$.extend $('input[name=recaptcha_response_field]', clone),
|
$.extend $('input[name=recaptcha_response_field]', clone),
|
||||||
placeholder: 'Verification'
|
placeholder: 'Verification'
|
||||||
className: 'inputtext'
|
className: 'inputtext'
|
||||||
|
required: true
|
||||||
|
|
||||||
form = dialog.lastElementChild
|
form = dialog.lastElementChild
|
||||||
$.bind form, 'submit', qr.cb.submit
|
$.bind form, 'submit', qr.cb.submit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user