This commit is contained in:
James Campos 2012-06-13 05:54:19 -07:00
parent 51e6aae640
commit 457f3ec977
2 changed files with 3 additions and 6 deletions

View File

@ -1985,7 +1985,7 @@
return QR.el.dispatchEvent(e); return QR.el.dispatchEvent(e);
}, },
submit: function(e) { submit: function(e) {
var callbacks, captcha, captchas, challenge, data, err, m, opts, post, reply, response, threadID; var callbacks, captcha, captchas, challenge, err, m, opts, post, reply, response, threadID;
if (e != null) { if (e != null) {
e.preventDefault(); e.preventDefault();
} }
@ -2052,7 +2052,6 @@
recaptcha_challenge_field: challenge, recaptcha_challenge_field: challenge,
recaptcha_response_field: response + ' ' recaptcha_response_field: response + ' '
}; };
data = $.formData(post);
callbacks = { callbacks = {
onload: function() { onload: function() {
return QR.response(this.response); return QR.response(this.response);
@ -2067,7 +2066,7 @@
} }
}; };
opts = { opts = {
form: data, form: $.formData(post),
upCallbacks: { upCallbacks: {
onload: function() { onload: function() {
return QR.status({ return QR.status({

View File

@ -1555,8 +1555,6 @@ QR =
recaptcha_challenge_field: challenge recaptcha_challenge_field: challenge
recaptcha_response_field: response + ' ' recaptcha_response_field: response + ' '
data = $.formData post
callbacks = callbacks =
onload: -> onload: ->
QR.response @response QR.response @response
@ -1569,7 +1567,7 @@ QR =
target: '_blank' target: '_blank'
textContent: 'Connection error, or you are banned.' textContent: 'Connection error, or you are banned.'
opts = opts =
form: data form: $.formData post
upCallbacks: upCallbacks:
onload: -> onload: ->
# Upload done, waiting for response. # Upload done, waiting for response.