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