refactor
This commit is contained in:
parent
37f8c16c88
commit
8d5c282110
@ -907,18 +907,13 @@
|
||||
}
|
||||
},
|
||||
qr: function(thread, quote) {
|
||||
var qrLink, tid;
|
||||
if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)', thread))) {
|
||||
qrLink = $("span[id^=nothread] a:not(:first-child)", thread);
|
||||
}
|
||||
tid = g.THREAD_ID || thread.firstChild.id;
|
||||
if (quote) {
|
||||
return QR.quote.call(qrLink);
|
||||
return QR.quote.call($('a.quotejs + a', $('td.replyhl', thread) || thread));
|
||||
} else {
|
||||
if (QR.qr) {
|
||||
return $('textarea', QR.qr).focus();
|
||||
} else {
|
||||
return QR.dialog('', tid);
|
||||
return QR.dialog('', g.THREAD_ID || thread.firstChild.id);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -650,16 +650,13 @@ keybinds =
|
||||
imgExpand.toggle thumb.parentNode
|
||||
|
||||
qr: (thread, quote) ->
|
||||
unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)', thread
|
||||
qrLink = $ "span[id^=nothread] a:not(:first-child)", thread
|
||||
tid = g.THREAD_ID or thread.firstChild.id
|
||||
if quote
|
||||
QR.quote.call qrLink
|
||||
QR.quote.call $ 'a.quotejs + a', $('td.replyhl', thread) or thread
|
||||
else
|
||||
if QR.qr
|
||||
$('textarea', QR.qr).focus()
|
||||
else
|
||||
QR.dialog '', tid
|
||||
QR.dialog '', g.THREAD_ID or thread.firstChild.id
|
||||
|
||||
open: (thread, tab) ->
|
||||
id = thread.firstChild.id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user