From b4d078a1f11b469dc88fdaaa544767e5a0ffcf31 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 7 Apr 2011 15:16:36 -0700 Subject: [PATCH] qr.refresh is not a cb --- 4chan_x.js | 14 +++++++------- script.coffee | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index c86a54521..cdcb45f2b 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1122,15 +1122,15 @@ ta = $('textarea', dialog); ta.focus(); return ta.value += text; - }, - refresh: function(dialog) { - var f; - $('textarea', dialog).value = ''; - $('input[name=recaptcha_response_field]', dialog).value = ''; - f = $('input[type=file]', dialog).parentNode; - return f.innerHTML = f.innerHTML; } }, + refresh: function(dialog) { + var f; + $('textarea', dialog).value = ''; + $('input[name=recaptcha_response_field]', dialog).value = ''; + f = $('input[type=file]', dialog).parentNode; + return f.innerHTML = f.innerHTML; + }, cooldown: function() { var submit, submits, _i, _len; submits = $$('#qr input[type=submit], form[name=post] input[type=submit]'); diff --git a/script.coffee b/script.coffee index ef704e35b..2440e5a1e 100644 --- a/script.coffee +++ b/script.coffee @@ -841,12 +841,12 @@ qr = ta.focus() ta.value += text - refresh: (dialog) -> - $('textarea', dialog).value = '' - $('input[name=recaptcha_response_field]', dialog).value = '' - # XXX file.value = '' doesn't work in opera - f = $('input[type=file]', dialog).parentNode - f.innerHTML = f.innerHTML + refresh: (dialog) -> + $('textarea', dialog).value = '' + $('input[name=recaptcha_response_field]', dialog).value = '' + # XXX file.value = '' doesn't work in opera + f = $('input[type=file]', dialog).parentNode + f.innerHTML = f.innerHTML cooldown: -> submits = $$ '#qr input[type=submit], form[name=post] input[type=submit]'