This commit is contained in:
Nicolas Stepien 2012-02-06 11:04:29 +01:00
parent 2008d6d773
commit 31badbae9d
2 changed files with 7 additions and 2 deletions

View File

@ -1200,7 +1200,10 @@
link = $.el('h1', {
innerHTML: "<a href=javascript:;>" + (g.REPLY ? 'Open the Quick Reply' : 'Create a New Thread') + "</a>"
});
$.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);
}

View File

@ -867,7 +867,9 @@ qr =
return unless $.id 'recaptcha_challenge_field_holder'
if conf['Hide Original Post Form']
link = $.el 'h1', innerHTML: "<a href=javascript:;>#{if g.REPLY then 'Open the Quick Reply' else 'Create a New Thread'}</a>"
$.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) ->