Fix time traveling backlinks.
This commit is contained in:
parent
b8b53efa4a
commit
350db1f73a
@ -1820,6 +1820,14 @@
|
|||||||
};
|
};
|
||||||
quoteBacklink = {
|
quoteBacklink = {
|
||||||
init: function() {
|
init: function() {
|
||||||
|
var span, _i, _len, _ref;
|
||||||
|
_ref = $$('span[id^=no]');
|
||||||
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
|
span = _ref[_i];
|
||||||
|
$.after(span, $.el('span', {
|
||||||
|
className: 'container'
|
||||||
|
}));
|
||||||
|
}
|
||||||
return g.callbacks.push(quoteBacklink.node);
|
return g.callbacks.push(quoteBacklink.node);
|
||||||
},
|
},
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
@ -1827,10 +1835,12 @@
|
|||||||
if (/inline/.test(root.className)) {
|
if (/inline/.test(root.className)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
container = $.el('span', {
|
if (!$('.container', root)) {
|
||||||
className: 'container'
|
container = $.el('span', {
|
||||||
});
|
className: 'container'
|
||||||
$.after($('span[id^=no]', root), container);
|
});
|
||||||
|
$.after($('span[id^=no]', root), container);
|
||||||
|
}
|
||||||
id = root.id || $('td[id]', root).id;
|
id = root.id || $('td[id]', root).id;
|
||||||
quotes = {};
|
quotes = {};
|
||||||
opbl = $.config('OP Backlinks');
|
opbl = $.config('OP Backlinks');
|
||||||
|
|||||||
@ -1437,12 +1437,15 @@ titlePost =
|
|||||||
|
|
||||||
quoteBacklink =
|
quoteBacklink =
|
||||||
init: ->
|
init: ->
|
||||||
|
for span in $$('span[id^=no]')
|
||||||
|
$.after span, $.el 'span', className: 'container'
|
||||||
g.callbacks.push quoteBacklink.node
|
g.callbacks.push quoteBacklink.node
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if /inline/.test root.className
|
return if /inline/.test root.className
|
||||||
container = $.el 'span',
|
unless $ '.container', root
|
||||||
className: 'container'
|
container = $.el 'span',
|
||||||
$.after $('span[id^=no]', root), container
|
className: 'container'
|
||||||
|
$.after $('span[id^=no]', root), container
|
||||||
id = root.id or $('td[id]', root).id
|
id = root.id or $('td[id]', root).id
|
||||||
quotes = {}
|
quotes = {}
|
||||||
opbl = $.config 'OP Backlinks'
|
opbl = $.config 'OP Backlinks'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user