Small backlink reflow
This commit is contained in:
parent
18db3994b6
commit
c45807c9b9
@ -5272,7 +5272,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
secondNode: function() {
|
secondNode: function() {
|
||||||
var backlink, container, post, quoteID, _i, _j, _len, _len1, _ref, _ref1;
|
var backlink, container, map, post, quoteID, _i, _j, _len, _len1, _ref;
|
||||||
if (!(this.isReply || Conf['OP Backlinks'])) {
|
if (!(this.isReply || Conf['OP Backlinks'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -5288,10 +5288,9 @@
|
|||||||
this.nodes.backlinkContainer = container = $.el('span', {
|
this.nodes.backlinkContainer = container = $.el('span', {
|
||||||
className: 'backlink-container'
|
className: 'backlink-container'
|
||||||
});
|
});
|
||||||
if (this.fullID in QuoteBacklink.map) {
|
if (map = QuoteBacklink.map[this.fullID]) {
|
||||||
_ref1 = QuoteBacklink.map[this.fullID];
|
for (_j = 0, _len1 = map.length; _j < _len1; _j++) {
|
||||||
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
quoteID = map[_j];
|
||||||
quoteID = _ref1[_j];
|
|
||||||
if (post = g.posts[quoteID]) {
|
if (post = g.posts[quoteID]) {
|
||||||
$.add(container, QuoteBacklink.buildBacklink(this, post));
|
$.add(container, QuoteBacklink.buildBacklink(this, post));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5324,7 +5324,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
secondNode: function() {
|
secondNode: function() {
|
||||||
var backlink, container, post, quoteID, _i, _j, _len, _len1, _ref, _ref1;
|
var backlink, container, map, post, quoteID, _i, _j, _len, _len1, _ref;
|
||||||
if (!(this.isReply || Conf['OP Backlinks'])) {
|
if (!(this.isReply || Conf['OP Backlinks'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -5340,10 +5340,9 @@
|
|||||||
this.nodes.backlinkContainer = container = $.el('span', {
|
this.nodes.backlinkContainer = container = $.el('span', {
|
||||||
className: 'backlink-container'
|
className: 'backlink-container'
|
||||||
});
|
});
|
||||||
if (this.fullID in QuoteBacklink.map) {
|
if (map = QuoteBacklink.map[this.fullID]) {
|
||||||
_ref1 = QuoteBacklink.map[this.fullID];
|
for (_j = 0, _len1 = map.length; _j < _len1; _j++) {
|
||||||
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
quoteID = map[_j];
|
||||||
quoteID = _ref1[_j];
|
|
||||||
if (post = g.posts[quoteID]) {
|
if (post = g.posts[quoteID]) {
|
||||||
$.add(container, QuoteBacklink.buildBacklink(this, post));
|
$.add(container, QuoteBacklink.buildBacklink(this, post));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,10 +47,9 @@ QuoteBacklink =
|
|||||||
return
|
return
|
||||||
@nodes.backlinkContainer = container = $.el 'span',
|
@nodes.backlinkContainer = container = $.el 'span',
|
||||||
className: 'backlink-container'
|
className: 'backlink-container'
|
||||||
if @fullID of QuoteBacklink.map
|
if map = QuoteBacklink.map[@fullID]
|
||||||
for quoteID in QuoteBacklink.map[@fullID]
|
for quoteID in map when post = g.posts[quoteID] # Post hasn't been collected since.
|
||||||
if post = g.posts[quoteID] # Post hasn't been collected since.
|
$.add container, QuoteBacklink.buildBacklink @, post
|
||||||
$.add container, QuoteBacklink.buildBacklink @, post
|
|
||||||
$.add @nodes.info, container
|
$.add @nodes.info, container
|
||||||
|
|
||||||
buildBacklink: (quoted, quoter) ->
|
buildBacklink: (quoted, quoter) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user