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