This commit is contained in:
James Campos 2011-09-03 16:04:44 -07:00
parent 37f8c16c88
commit 8d5c282110
2 changed files with 4 additions and 12 deletions

View File

@ -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);
}
}
},

View File

@ -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