Fix a small bug resulting in double-hashlinks on clones.
This commit is contained in:
parent
7c330f39bc
commit
ec9c5d7d92
@ -3605,7 +3605,9 @@
|
||||
_ref = this.nodes.quotelinks.concat(__slice.call(this.nodes.backlinks));
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
link = _ref[_i];
|
||||
$.after(link, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
if (!this.isClone) {
|
||||
$.after(link, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
}
|
||||
$.on(link, 'click', QuoteInline.toggle);
|
||||
}
|
||||
};
|
||||
|
||||
@ -3601,7 +3601,9 @@
|
||||
_ref = this.nodes.quotelinks.concat(__slice.call(this.nodes.backlinks));
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
link = _ref[_i];
|
||||
$.after(link, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
if (!this.isClone) {
|
||||
$.after(link, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
}
|
||||
$.on(link, 'click', QuoteInline.toggle);
|
||||
}
|
||||
};
|
||||
|
||||
@ -3604,7 +3604,9 @@
|
||||
_ref = this.nodes.quotelinks.concat(__slice.call(this.nodes.backlinks));
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
link = _ref[_i];
|
||||
$.after(link, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
if (!this.isClone) {
|
||||
$.after(link, QuoteInline.qiQuote(link, $.hasClass(link, 'filtered')));
|
||||
}
|
||||
$.on(link, 'click', QuoteInline.toggle);
|
||||
}
|
||||
};
|
||||
|
||||
@ -8,7 +8,7 @@ QuoteInline =
|
||||
if Conf['Quote Hash Navigation']
|
||||
@node = ->
|
||||
for link in @nodes.quotelinks.concat [@nodes.backlinks...]
|
||||
$.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered'
|
||||
$.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless @isClone
|
||||
$.on link, 'click', QuoteInline.toggle
|
||||
return
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user