hash[1..]
This commit is contained in:
parent
4767e98271
commit
81280dd548
@ -1667,10 +1667,9 @@
|
|||||||
_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];
|
||||||
if (!(qid = quote.textContent.match(/\d+/))) {
|
if (!(qid = quote.hash.slice(1))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
qid = qid[0];
|
|
||||||
if (qid === tid) {
|
if (qid === tid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1800,10 +1799,9 @@
|
|||||||
},
|
},
|
||||||
mouseover: function(e) {
|
mouseover: function(e) {
|
||||||
var el, id, qp, req, threadID;
|
var el, id, qp, req, threadID;
|
||||||
if (!(id = this.textContent.match(/\d+/))) {
|
if (!(id = this.hash.slice(1))) {
|
||||||
return;
|
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;
|
||||||
|
|||||||
@ -1337,8 +1337,7 @@ quoteBacklink =
|
|||||||
quotes = {}
|
quotes = {}
|
||||||
tid = g.THREAD_ID
|
tid = g.THREAD_ID
|
||||||
for quote in $$ 'a.quotelink', root
|
for quote in $$ 'a.quotelink', root
|
||||||
continue unless qid = quote.textContent.match /\d+/
|
continue unless qid = quote.hash[1..]
|
||||||
[qid] = qid
|
|
||||||
#don't backlink the op
|
#don't backlink the op
|
||||||
continue if qid == tid
|
continue if qid == tid
|
||||||
#duplicate quotes get overwritten
|
#duplicate quotes get overwritten
|
||||||
@ -1424,8 +1423,7 @@ 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) ->
|
||||||
return unless id = @textContent.match /\d+/
|
return unless id = @hash[1..]
|
||||||
[id] = id
|
|
||||||
qp = $ '#qp'
|
qp = $ '#qp'
|
||||||
if el = d.getElementById id
|
if el = d.getElementById id
|
||||||
qp.innerHTML = el.innerHTML
|
qp.innerHTML = el.innerHTML
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user