diff --git a/4chan_x.user.js b/4chan_x.user.js index 92e9cb052..358f77646 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1289,7 +1289,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' @@ -1302,7 +1302,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($('#attach', qr.el), 'click', qr.attach); + $.bind($('a[name=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 c36412257..e03ca8dd8 100644 --- a/script.coffee +++ b/script.coffee @@ -1034,7 +1034,7 @@ qr = Quick Reply
-
+ @@ -1046,7 +1046,7 @@ qr =
-
attach another file
+
attach another file
" @@ -1059,7 +1059,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 $('#attach', qr.el), 'click', qr.attach + $.bind $('a[name=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