Only pick thread when quoting. Not when opening an empty QR with the keybind.
This commit is contained in:
parent
18525ecee1
commit
21e07e4ac0
@ -1059,7 +1059,6 @@
|
||||
} else {
|
||||
qr.open();
|
||||
}
|
||||
if (!g.REPLY) qr.pickThread(thread.firstChild.id);
|
||||
return $('textarea', qr.el).focus();
|
||||
},
|
||||
open: function(thread, tab) {
|
||||
@ -1323,15 +1322,12 @@
|
||||
return qr.status();
|
||||
}
|
||||
},
|
||||
pickThread: function(thread) {
|
||||
return $('select', qr.el).value = thread;
|
||||
},
|
||||
quote: function(e) {
|
||||
var caretPos, id, s, sel, ta, text, _ref;
|
||||
if (e != null) e.preventDefault();
|
||||
qr.open();
|
||||
if (!g.REPLY) {
|
||||
qr.pickThread($.x('ancestor::div[@class="thread"]/div', this).id);
|
||||
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', this).id;
|
||||
}
|
||||
id = this.textContent;
|
||||
text = ">>" + id + "\n";
|
||||
|
||||
@ -748,7 +748,6 @@ keybinds =
|
||||
qr.quote.call $ '.quotejs + .quotejs', $('.replyhl', thread) or thread
|
||||
else
|
||||
qr.open()
|
||||
qr.pickThread thread.firstChild.id unless g.REPLY
|
||||
$('textarea', qr.el).focus()
|
||||
|
||||
open: (thread, tab) ->
|
||||
@ -959,13 +958,11 @@ qr =
|
||||
qr.submit() if qr.cooldown.auto
|
||||
qr.status()
|
||||
|
||||
pickThread: (thread) ->
|
||||
$('select', qr.el).value = thread
|
||||
|
||||
quote: (e) ->
|
||||
e?.preventDefault()
|
||||
qr.open()
|
||||
qr.pickThread $.x('ancestor::div[@class="thread"]/div', @).id unless g.REPLY
|
||||
unless g.REPLY
|
||||
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', @).id
|
||||
|
||||
id = @textContent
|
||||
text = ">>#{id}\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user