Fix a small bug resulting in double-hashlinks on clones.

This commit is contained in:
Zixaphir 2013-05-06 14:53:20 -07:00
parent 7c330f39bc
commit ec9c5d7d92
4 changed files with 10 additions and 4 deletions

View File

@ -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);
}
};

View File

@ -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);
}
};

View File

@ -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);
}
};

View File

@ -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