From 51709790a36d6effcac6781688d7aceb475c20f0 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 23 Aug 2011 22:02:55 -0700 Subject: [PATCH] name=attach -> id=attach --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 4d6792b4e..6ce1de1e1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1303,7 +1303,7 @@ THREAD_ID = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', link).id; spoiler = $('.postarea label') ? '' : ''; challenge = $('#recaptcha_challenge_field').value; - html = " X
Quick Reply
" + spoiler + "
" + ($.get('captchas', []).length) + " captchas
attach another file
"; + html = " X
Quick Reply
" + spoiler + "
" + ($.get('captchas', []).length) + " captchas
attach another file
"; qr.el = ui.dialog('qr', { top: '0px', left: '0px' @@ -1319,7 +1319,7 @@ $.bind($('input[name=upfile]', qr.el), 'change', qr.validateFileSize); $.bind($('#close', qr.el), 'click', qr.close); $.bind($('form', qr.el), 'submit', qr.submit); - $.bind($('a[name=attach]', qr.el), 'click', qr.attach); + $.bind($('#attach', qr.el), 'click', qr.attach); $.bind($('img', qr.el), 'click', Recaptcha.reload); $.bind($('#recaptcha_response_field', qr.el), 'keydown', Recaptcha.listener); $.bind($('#recaptcha_response_field', qr.el), 'keydown', qr.captchaKeydown); diff --git a/script.coffee b/script.coffee index 20212c942..b66707a1e 100644 --- a/script.coffee +++ b/script.coffee @@ -1054,7 +1054,7 @@ qr =
-
attach another file
+
attach another file
" @@ -1067,7 +1067,7 @@ qr = $.bind $('input[name=upfile]', qr.el), 'change', qr.validateFileSize $.bind $('#close', qr.el), 'click', qr.close $.bind $('form', qr.el), 'submit', qr.submit - $.bind $('a[name=attach]', qr.el), 'click', qr.attach + $.bind $('#attach', qr.el), 'click', qr.attach $.bind $('img', qr.el), 'click', Recaptcha.reload $.bind $('#recaptcha_response_field', qr.el), 'keydown', Recaptcha.listener $.bind $('#recaptcha_response_field', qr.el), 'keydown', qr.captchaKeydown