Fix quote features in expanded comments. close #195
This commit is contained in:
parent
cd99d4bd7c
commit
df62a45451
@ -543,7 +543,7 @@
|
|||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
parse: function(req, a, threadID, replyID) {
|
parse: function(req, a, threadID, replyID) {
|
||||||
var body, bq, reply, _i, _len, _ref;
|
var body, bq, quote, reply, _i, _j, _len, _len2, _ref, _ref2;
|
||||||
if (req.status !== 200) {
|
if (req.status !== 200) {
|
||||||
a.textContent = "" + req.status + " " + req.statusText;
|
a.textContent = "" + req.status + " " + req.statusText;
|
||||||
return;
|
return;
|
||||||
@ -563,6 +563,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_ref2 = $$('a.quotelink', bq);
|
||||||
|
for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
|
||||||
|
quote = _ref2[_j];
|
||||||
|
if (quote.getAttribute('href') === quote.hash) {
|
||||||
|
quote.pathname = "/" + g.BOARD + "/res/" + threadID;
|
||||||
|
}
|
||||||
|
if (conf['Quote Preview']) {
|
||||||
|
$.bind(quote, 'mouseover', quotePreview.mouseover);
|
||||||
|
$.bind(quote, 'mousemove', ui.hover);
|
||||||
|
$.bind(quote, 'mouseout', quotePreview.mouseout);
|
||||||
|
}
|
||||||
|
if (conf['Quote Inline']) {
|
||||||
|
$.bind(quote, 'click', quoteInline.toggle);
|
||||||
|
}
|
||||||
|
}
|
||||||
return $.replace(a.parentNode.parentNode, bq);
|
return $.replace(a.parentNode.parentNode, bq);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -401,6 +401,15 @@ expandComment =
|
|||||||
if reply.id == replyID
|
if reply.id == replyID
|
||||||
bq = $ 'blockquote', reply
|
bq = $ 'blockquote', reply
|
||||||
break
|
break
|
||||||
|
for quote in $$ 'a.quotelink', bq
|
||||||
|
if quote.getAttribute('href') is quote.hash
|
||||||
|
quote.pathname = "/#{g.BOARD}/res/#{threadID}"
|
||||||
|
if conf['Quote Preview']
|
||||||
|
$.bind quote, 'mouseover', quotePreview.mouseover
|
||||||
|
$.bind quote, 'mousemove', ui.hover
|
||||||
|
$.bind quote, 'mouseout', quotePreview.mouseout
|
||||||
|
if conf['Quote Inline']
|
||||||
|
$.bind quote, 'click', quoteInline.toggle
|
||||||
$.replace a.parentNode.parentNode, bq
|
$.replace a.parentNode.parentNode, bq
|
||||||
|
|
||||||
expandThread =
|
expandThread =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user