From 27cea18498f01671fabaec188aeb7d0c73ac36e2 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 6 Aug 2011 09:48:52 -0700 Subject: [PATCH] add -> attach --- 4chan_x.user.js | 6 +++--- script.coffee | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6f62a05ed..bb032a6ab 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1240,7 +1240,7 @@ $('#recaptcha_response_field').id = ''; return qr.captcha = []; }, - add: function() { + attach: function() { var file, files; $('#auto', qr.el).checked = true; file = $.el('input', { @@ -1294,7 +1294,7 @@ THREAD_ID = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', link).id; spoiler = $('.postarea label') ? '' : ''; challenge = $('input[name=recaptcha_challenge_field]').value; - html = "
Quick Reply X
" + spoiler + "
0
attach another file
"; + html = "
Quick Reply X
" + spoiler + "
0
attach another file
"; qr.el = ui.dialog('qr', { top: '0px', left: '0px' @@ -1307,7 +1307,7 @@ $.bind($('#autohide', qr.el), 'click', qr.cb.autohide); $.bind($('a[name=close]', qr.el), 'click', qr.close); $.bind($('form', qr.el), 'submit', qr.submit); - $.bind($('a[name=add]', qr.el), 'click', qr.add); + $.bind($('a[name=attach]', qr.el), 'click', qr.attach); $.bind($('img', qr.el), 'click', Recaptcha.reload); $.bind($('input[name=recaptcha_response_field]', qr.el), 'keydown', Recaptcha.listener); return $.append(d.body, qr.el); diff --git a/script.coffee b/script.coffee index 76b0fa0f6..c0e3e5182 100644 --- a/script.coffee +++ b/script.coffee @@ -978,7 +978,7 @@ qr = $('#recaptcha_response_field').id = '' qr.captcha = [] - add: -> + attach: -> $('#auto', qr.el).checked = true file = $.el 'input', type: 'file', name: 'upfile' files = $ '#files', qr.el @@ -1036,7 +1036,7 @@ qr =
0
-
attach another file
+
attach another file
@@ -1050,7 +1050,7 @@ qr = $.bind $('#autohide', qr.el), 'click', qr.cb.autohide $.bind $('a[name=close]', qr.el), 'click', qr.close $.bind $('form', qr.el), 'submit', qr.submit - $.bind $('a[name=add]', qr.el), 'click', qr.add + $.bind $('a[name=attach]', qr.el), 'click', qr.attach $.bind $('img', qr.el), 'click', Recaptcha.reload $.bind $('input[name=recaptcha_response_field]', qr.el), 'keydown', Recaptcha.listener