From 457f3ec977d4a0b9f0f97fc2e54fe685942782eb Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 13 Jun 2012 05:54:19 -0700 Subject: [PATCH] no data --- 4chan_x.user.js | 5 ++--- script.coffee | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 29adb3ac0..37bf5a0e4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1985,7 +1985,7 @@ return QR.el.dispatchEvent(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) { e.preventDefault(); } @@ -2052,7 +2052,6 @@ recaptcha_challenge_field: challenge, recaptcha_response_field: response + ' ' }; - data = $.formData(post); callbacks = { onload: function() { return QR.response(this.response); @@ -2067,7 +2066,7 @@ } }; opts = { - form: data, + form: $.formData(post), upCallbacks: { onload: function() { return QR.status({ diff --git a/script.coffee b/script.coffee index 18f99d331..20083919c 100644 --- a/script.coffee +++ b/script.coffee @@ -1555,8 +1555,6 @@ QR = recaptcha_challenge_field: challenge recaptcha_response_field: response + ' ' - data = $.formData post - callbacks = onload: -> QR.response @response @@ -1569,7 +1567,7 @@ QR = target: '_blank' textContent: 'Connection error, or you are banned.' opts = - form: data + form: $.formData post upCallbacks: onload: -> # Upload done, waiting for response.