better
This commit is contained in:
parent
fbe4d9be5a
commit
cbe51e7822
@ -1426,9 +1426,6 @@
|
|||||||
},
|
},
|
||||||
submit: function(e) {
|
submit: function(e) {
|
||||||
var id, msg, op;
|
var id, msg, op;
|
||||||
if (this.id !== 'qr_form') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (msg = qr.postInvalid()) {
|
if (msg = qr.postInvalid()) {
|
||||||
if (typeof e.preventDefault === "function") {
|
if (typeof e.preventDefault === "function") {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -2798,7 +2795,6 @@
|
|||||||
$.addStyle(main.css);
|
$.addStyle(main.css);
|
||||||
if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) {
|
if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) {
|
||||||
Recaptcha.init();
|
Recaptcha.init();
|
||||||
$.bind(form, 'submit', qr.submit);
|
|
||||||
}
|
}
|
||||||
threading.init();
|
threading.init();
|
||||||
if (g.REPLY && (id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) {
|
if (g.REPLY && (id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) {
|
||||||
|
|||||||
@ -1176,8 +1176,6 @@ qr =
|
|||||||
$.replace oldFile, newFile
|
$.replace oldFile, newFile
|
||||||
|
|
||||||
submit: (e) ->
|
submit: (e) ->
|
||||||
return unless @id is 'qr_form'
|
|
||||||
|
|
||||||
#XXX `e` won't exist if we're here from `qr.submit.call form`.
|
#XXX `e` won't exist if we're here from `qr.submit.call form`.
|
||||||
if msg = qr.postInvalid()
|
if msg = qr.postInvalid()
|
||||||
e.preventDefault?()
|
e.preventDefault?()
|
||||||
@ -2207,7 +2205,6 @@ main =
|
|||||||
#recaptcha may be blocked, eg by noscript
|
#recaptcha may be blocked, eg by noscript
|
||||||
if (form = $ 'form[name=post]') and (canPost = !!$ '#recaptcha_response_field')
|
if (form = $ 'form[name=post]') and (canPost = !!$ '#recaptcha_response_field')
|
||||||
Recaptcha.init()
|
Recaptcha.init()
|
||||||
$.bind form, 'submit', qr.submit
|
|
||||||
|
|
||||||
#major features
|
#major features
|
||||||
threading.init()
|
threading.init()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user