fix op quoting

This commit is contained in:
James Campos 2011-05-29 23:30:06 -07:00
parent 5cc3ccb1ba
commit bac8575555
2 changed files with 2 additions and 2 deletions

View File

@ -1972,7 +1972,7 @@
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref[_i];
qid = ((_ref2 = quote.hash) != null ? _ref2.slice(1) : void 0) || quote.getAttribute('data-href').match(/\d+/)[0];
qid = ((_ref2 = quote.hash) != null ? _ref2.slice(1) : void 0) || quote.getAttribute('data-href').match(/\d+$/)[0];
_results.push(qid === tid ? quote.innerHTML += '&nbsp;(OP)' : void 0);
}
return _results;

View File

@ -1539,7 +1539,7 @@ quoteOP =
return if root.className is 'inline'
tid = g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]/div', root).id
for quote in $$ 'a.quotelink', root
qid = quote.hash?[1..] or quote.getAttribute('data-href').match(/\d+/)[0]
qid = quote.hash?[1..] or quote.getAttribute('data-href').match(/\d+$/)[0]
if qid is tid
quote.innerHTML += '&nbsp;(OP)'