x-board previews

This commit is contained in:
James Campos 2011-05-10 00:26:53 -07:00
parent 641a7d668e
commit fd141d5dfd
2 changed files with 4 additions and 4 deletions

View File

@ -1683,7 +1683,7 @@
_ref = $$('a.quotelink', root);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref[_i];
qid = quote.textContent.slice(2);
qid = quote.textContent.match(/\d+/)[0];
quotes[qid] = quote;
}
_results = [];
@ -1732,7 +1732,7 @@
},
mouseover: function(e) {
var el, id, qp, req, threadID;
id = this.textContent.slice(2);
id = this.textContent.match(/\d+/)[0];
qp = $('#qp');
if (el = d.getElementById(id)) {
qp.innerHTML = el.innerHTML;

View File

@ -1352,7 +1352,7 @@ quoteBacklink =
id = root.id or $('td[id]', root).id
quotes = {}
for quote in $$ 'a.quotelink', root
qid = quote.textContent[2..] #FIXME cross-board links
qid = quote.textContent.match(/\d+/)[0]
#duplicate quotes get overwritten
quotes[qid] = quote
for qid, quote of quotes
@ -1381,7 +1381,7 @@ quotePreview =
$.bind quote, 'mousemove', ui.hover
$.bind quote, 'mouseout', ui.hoverend
mouseover: (e) ->
id = @textContent[2..]
id = @textContent.match(/\d+/)[0]
qp = $ '#qp'
if el = d.getElementById id
qp.innerHTML = el.innerHTML