Open the QR focused when using the 'Open QR without post number inserted' keybind

This commit is contained in:
Nicolas Stepien 2011-12-07 11:44:44 +01:00
parent 0c56b42f37
commit 6341f070ba
3 changed files with 5 additions and 8 deletions

View File

@ -1072,11 +1072,8 @@
if (quote) {
return qr.quote.call($('.quotejs + a', $('.replyhl', thread) || thread));
} else {
if (qr.el) {
return $('textarea', qr.el).focus();
} else {
return qr.dialog('', thread != null ? thread.firstChild.id : void 0);
}
if (!qr.el) qr.dialog('', thread != null ? thread.firstChild.id : void 0);
return $('textarea', qr.el).focus();
}
},
open: function(thread, tab) {

View File

@ -2,6 +2,7 @@ master
- mayhem
quotes are now inserted at the caret position in the QR
quotes also replace the text selection in the QR
open QR focused when using the `Open QR without post number inserted` keybind
- aeosynth
update the captcha caching expiration date to 30mins

View File

@ -750,10 +750,9 @@ keybinds =
if quote
qr.quote.call $ '.quotejs + a', $('.replyhl', thread) or thread
else
if qr.el
$('textarea', qr.el).focus()
else
unless qr.el
qr.dialog '', thread?.firstChild.id
$('textarea', qr.el).focus()
open: (thread, tab) ->
id = thread.firstChild.id