Small fix to backlinks code
This commit is contained in:
parent
bf80874f9f
commit
dcb734afff
@ -4708,7 +4708,7 @@
|
||||
});
|
||||
},
|
||||
firstNode: function() {
|
||||
var a, clone, container, containers, frag, link, post, quote, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
|
||||
var a, clone, container, containers, link, nodes, post, quote, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
|
||||
if (this.isClone || !this.quotes.length) {
|
||||
return;
|
||||
}
|
||||
@ -4730,17 +4730,17 @@
|
||||
}
|
||||
for (_k = 0, _len2 = containers.length; _k < _len2; _k++) {
|
||||
container = containers[_k];
|
||||
frag = [$.tn(' '), link = a.cloneNode(true)];
|
||||
nodes = [$.tn(' '), link = a.cloneNode(true)];
|
||||
if (Conf['Quote Previewing']) {
|
||||
$.on(link, 'mouseover', QuotePreview.mouseover);
|
||||
}
|
||||
if (Conf['Quote Inlining']) {
|
||||
$.on(link, 'click', QuoteInline.toggle);
|
||||
if (Conf['Quote Hash Navigation']) {
|
||||
frag.push.apply(frag, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
nodes.push(QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
}
|
||||
}
|
||||
$.add(container, frag);
|
||||
$.add(container, nodes);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -4711,7 +4711,7 @@
|
||||
});
|
||||
},
|
||||
firstNode: function() {
|
||||
var a, clone, container, containers, frag, link, post, quote, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
|
||||
var a, clone, container, containers, link, nodes, post, quote, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
|
||||
if (this.isClone || !this.quotes.length) {
|
||||
return;
|
||||
}
|
||||
@ -4733,17 +4733,17 @@
|
||||
}
|
||||
for (_k = 0, _len2 = containers.length; _k < _len2; _k++) {
|
||||
container = containers[_k];
|
||||
frag = [$.tn(' '), link = a.cloneNode(true)];
|
||||
nodes = [$.tn(' '), link = a.cloneNode(true)];
|
||||
if (Conf['Quote Previewing']) {
|
||||
$.on(link, 'mouseover', QuotePreview.mouseover);
|
||||
}
|
||||
if (Conf['Quote Inlining']) {
|
||||
$.on(link, 'click', QuoteInline.toggle);
|
||||
if (Conf['Quote Hash Navigation']) {
|
||||
frag.push.apply(frag, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
nodes.push(QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
}
|
||||
}
|
||||
$.add(container, frag);
|
||||
$.add(container, nodes);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -36,13 +36,13 @@ QuoteBacklink =
|
||||
for clone in post.clones
|
||||
containers.push clone.nodes.backlinkContainer
|
||||
for container in containers
|
||||
frag = [$.tn(' '), link = a.cloneNode true]
|
||||
nodes = [$.tn(' '), link = a.cloneNode true]
|
||||
if Conf['Quote Previewing']
|
||||
$.on link, 'mouseover', QuotePreview.mouseover
|
||||
if Conf['Quote Inlining']
|
||||
$.on link, 'click', QuoteInline.toggle
|
||||
frag.push.apply frag, QuoteInline.qiQuote link, $.hasClass link, 'filtered' if Conf['Quote Hash Navigation']
|
||||
$.add container, frag
|
||||
nodes.push QuoteInline.qiQuote link, $.hasClass link, 'filtered' if Conf['Quote Hash Navigation']
|
||||
$.add container, nodes
|
||||
return
|
||||
secondNode: ->
|
||||
if @isClone and (@origin.isReply or Conf['OP Backlinks'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user