From 31badbae9dac271e9c70e58351a03151a05bc71d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 6 Feb 2012 11:04:29 +0100 Subject: [PATCH] Fix #185. --- 4chan_x.user.js | 5 ++++- script.coffee | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 36bbb6df5..a444bf560 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1200,7 +1200,10 @@ link = $.el('h1', { innerHTML: "" + (g.REPLY ? 'Open the Quick Reply' : 'Create a New Thread') + "" }); - $.on($('a', link), 'click', qr.open); + $.on($('a', link), 'click', function() { + qr.open(); + return $('textarea', qr.el).focus(); + }); form = d.forms[0]; $.before(form, link); } diff --git a/script.coffee b/script.coffee index fc433cde4..fc99afd59 100644 --- a/script.coffee +++ b/script.coffee @@ -867,7 +867,9 @@ qr = return unless $.id 'recaptcha_challenge_field_holder' if conf['Hide Original Post Form'] link = $.el 'h1', innerHTML: "#{if g.REPLY then 'Open the Quick Reply' else 'Create a New Thread'}" - $.on $('a', link), 'click', qr.open + $.on $('a', link), 'click', -> + qr.open() + $('textarea', qr.el).focus() form = d.forms[0] $.before form, link g.callbacks.push (root) ->