Fix #185.
This commit is contained in:
parent
2008d6d773
commit
31badbae9d
@ -1200,7 +1200,10 @@
|
|||||||
link = $.el('h1', {
|
link = $.el('h1', {
|
||||||
innerHTML: "<a href=javascript:;>" + (g.REPLY ? 'Open the Quick Reply' : 'Create a New Thread') + "</a>"
|
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];
|
form = d.forms[0];
|
||||||
$.before(form, link);
|
$.before(form, link);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -867,7 +867,9 @@ qr =
|
|||||||
return unless $.id 'recaptcha_challenge_field_holder'
|
return unless $.id 'recaptcha_challenge_field_holder'
|
||||||
if conf['Hide Original Post Form']
|
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>"
|
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]
|
form = d.forms[0]
|
||||||
$.before form, link
|
$.before form, link
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user