fix #176
This commit is contained in:
parent
f80d5e553a
commit
ad5bfe92ab
@ -1830,13 +1830,10 @@
|
|||||||
quoteBacklink = {
|
quoteBacklink = {
|
||||||
init: function() {
|
init: function() {
|
||||||
return g.callbacks.push(function(root) {
|
return g.callbacks.push(function(root) {
|
||||||
var el, id, link, opbl, qid, quote, quotes, _i, _len, _ref, _results;
|
var container, el, id, link, opbl, qid, quote, quotes, _i, _len, _ref, _results;
|
||||||
if (/inline/.test(root.className)) {
|
if (/inline/.test(root.className)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.after($('span[id^=no]', root), $.el('span', {
|
|
||||||
className: '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');
|
||||||
@ -1871,7 +1868,12 @@
|
|||||||
if ($.config('Quote Inline')) {
|
if ($.config('Quote Inline')) {
|
||||||
$.bind(link, 'click', quoteInline.toggle);
|
$.bind(link, 'click', quoteInline.toggle);
|
||||||
}
|
}
|
||||||
_results.push($.append($('.container', el), $.tn(' '), link));
|
if (!(container = $('.container', el))) {
|
||||||
|
container = $.after($('span[id^=no]', el), $.el('span', {
|
||||||
|
className: 'container'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
_results.push($.append(container, $.tn(' '), link));
|
||||||
}
|
}
|
||||||
return _results;
|
return _results;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1442,7 +1442,6 @@ quoteBacklink =
|
|||||||
init: ->
|
init: ->
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
return if /inline/.test root.className
|
return if /inline/.test root.className
|
||||||
$.after $('span[id^=no]', root), $.el 'span', className: 'container'
|
|
||||||
# op or reply
|
# op or reply
|
||||||
id = root.id or $('td[id]', root).id
|
id = root.id or $('td[id]', root).id
|
||||||
quotes = {}
|
quotes = {}
|
||||||
@ -1467,7 +1466,9 @@ quoteBacklink =
|
|||||||
$.bind link, 'mouseout', quotePreview.mouseout
|
$.bind link, 'mouseout', quotePreview.mouseout
|
||||||
if $.config 'Quote Inline'
|
if $.config 'Quote Inline'
|
||||||
$.bind link, 'click', quoteInline.toggle
|
$.bind link, 'click', quoteInline.toggle
|
||||||
$.append $('.container', el), $.tn(' '), link
|
unless container = $ '.container', el
|
||||||
|
container = $.after $('span[id^=no]', el), $.el 'span', className: 'container'
|
||||||
|
$.append container, $.tn(' '), link
|
||||||
|
|
||||||
quoteInline =
|
quoteInline =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user