Clicking on 'New Thread' should select 'New thread' in the QR's thread list.

This commit is contained in:
Nicolas Stepien 2012-03-11 17:28:08 +01:00
parent b40a79a9f4
commit 97bc32eefa
2 changed files with 2 additions and 0 deletions

View File

@ -1243,6 +1243,7 @@
});
$.on($('a', link), 'click', function() {
qr.open();
if (!g.REPLY) $('select', qr.el).value = 'new';
return $('textarea', qr.el).focus();
});
form = d.forms[0];

View File

@ -1020,6 +1020,7 @@ qr =
link = $.el 'h1', innerHTML: "<a href=javascript:;>#{if g.REPLY then 'Quick Reply' else 'New Thread'}</a>"
$.on $('a', link), 'click', ->
qr.open()
$('select', qr.el).value = 'new' unless g.REPLY
$('textarea', qr.el).focus()
form = d.forms[0]
$.before form, link