don't break on >>>/b/

This commit is contained in:
James Campos 2011-05-10 01:32:20 -07:00
parent 11f9dd88c4
commit b2c6c31840
2 changed files with 12 additions and 4 deletions

View File

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

View File

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