From b661e8622a9c2fb1b40212b667f099677a63ec29 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 11 Oct 2010 05:51:23 -0700 Subject: [PATCH] fix for firefox 4.0b6 --- 4chan_x.coffee | 5 +---- 4chan_x.js | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index a98e619c4..7a928ee28 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -499,9 +499,9 @@ quickReply = (e) -> if not REPLY xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]' input = n 'input', { - value: x(xpath, this).name type: 'hidden' name: 'resto' + value: x(xpath, this).name } clone.appendChild(input) qr.appendChild(clone) @@ -744,10 +744,7 @@ if getConfig('Quick Reply') ) #hack - nuke id so it doesn't grab focus when reloading - console.log 'wat' - console.log $('#recaptcha_response_field') $('#recaptcha_response_field').id = '' - #$('form[name=post] input[name=recaptcha_response_field]').id = '' if getConfig('Quick Report') diff --git a/4chan_x.js b/4chan_x.js index 0d43dd052..f9b9817a8 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -540,9 +540,9 @@ if (!REPLY) { xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'; input = n('input', { - value: x(xpath, this).name, type: 'hidden', - name: 'resto' + name: 'resto', + value: x(xpath, this).name }); clone.appendChild(input); } @@ -825,8 +825,6 @@ } return _result; }); - console.log('wat'); - console.log($('#recaptcha_response_field')); $('#recaptcha_response_field').id = ''; } if (getConfig('Quick Report')) {