Remove some good practices... if we weren't using CoffeeScript
This commit is contained in:
parent
9c84cd379c
commit
3283e38cd9
@ -4125,8 +4125,7 @@
|
|||||||
if (Conf['Highlight Posts Quoting You']) {
|
if (Conf['Highlight Posts Quoting You']) {
|
||||||
$.addClass(doc, 'highlight-you');
|
$.addClass(doc, 'highlight-you');
|
||||||
}
|
}
|
||||||
this.text = '\u00A0(You)';
|
return this.text = Post.prototype.callbacks.push({
|
||||||
return Post.prototype.callbacks.push({
|
|
||||||
name: 'Mark Quotes of You',
|
name: 'Mark Quotes of You',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
});
|
});
|
||||||
@ -4147,7 +4146,7 @@
|
|||||||
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
|
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
|
||||||
quotelink = quotelinks[_i];
|
quotelink = quotelinks[_i];
|
||||||
if (QR.db.get(Get.postDataFromLink(quotelink))) {
|
if (QR.db.get(Get.postDataFromLink(quotelink))) {
|
||||||
$.add(quotelink, $.tn(QuoteYou.text));
|
$.add(quotelink, $.tn('\u00A0(You)'));
|
||||||
$.addClass(this.nodes.root, 'quotesYou');
|
$.addClass(this.nodes.root, 'quotesYou');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4109,8 +4109,7 @@
|
|||||||
if (Conf['Highlight Posts Quoting You']) {
|
if (Conf['Highlight Posts Quoting You']) {
|
||||||
$.addClass(doc, 'highlight-you');
|
$.addClass(doc, 'highlight-you');
|
||||||
}
|
}
|
||||||
this.text = '\u00A0(You)';
|
return this.text = Post.prototype.callbacks.push({
|
||||||
return Post.prototype.callbacks.push({
|
|
||||||
name: 'Mark Quotes of You',
|
name: 'Mark Quotes of You',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
});
|
});
|
||||||
@ -4131,7 +4130,7 @@
|
|||||||
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
|
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
|
||||||
quotelink = quotelinks[_i];
|
quotelink = quotelinks[_i];
|
||||||
if (QR.db.get(Get.postDataFromLink(quotelink))) {
|
if (QR.db.get(Get.postDataFromLink(quotelink))) {
|
||||||
$.add(quotelink, $.tn(QuoteYou.text));
|
$.add(quotelink, $.tn('\u00A0(You)'));
|
||||||
$.addClass(this.nodes.root, 'quotesYou');
|
$.addClass(this.nodes.root, 'quotesYou');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4111,8 +4111,7 @@
|
|||||||
if (Conf['Highlight Posts Quoting You']) {
|
if (Conf['Highlight Posts Quoting You']) {
|
||||||
$.addClass(doc, 'highlight-you');
|
$.addClass(doc, 'highlight-you');
|
||||||
}
|
}
|
||||||
this.text = '\u00A0(You)';
|
return this.text = Post.prototype.callbacks.push({
|
||||||
return Post.prototype.callbacks.push({
|
|
||||||
name: 'Mark Quotes of You',
|
name: 'Mark Quotes of You',
|
||||||
cb: this.node
|
cb: this.node
|
||||||
});
|
});
|
||||||
@ -4133,7 +4132,7 @@
|
|||||||
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
|
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
|
||||||
quotelink = quotelinks[_i];
|
quotelink = quotelinks[_i];
|
||||||
if (QR.db.get(Get.postDataFromLink(quotelink))) {
|
if (QR.db.get(Get.postDataFromLink(quotelink))) {
|
||||||
$.add(quotelink, $.tn(QuoteYou.text));
|
$.add(quotelink, $.tn('\u00A0(You)'));
|
||||||
$.addClass(this.nodes.root, 'quotesYou');
|
$.addClass(this.nodes.root, 'quotesYou');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@ QuoteYou =
|
|||||||
$.addClass doc, 'highlight-you'
|
$.addClass doc, 'highlight-you'
|
||||||
|
|
||||||
# \u00A0 is nbsp
|
# \u00A0 is nbsp
|
||||||
@text = '\u00A0(You)'
|
@text =
|
||||||
Post::callbacks.push
|
Post::callbacks.push
|
||||||
name: 'Mark Quotes of You'
|
name: 'Mark Quotes of You'
|
||||||
cb: @node
|
cb: @node
|
||||||
@ -26,6 +26,6 @@ QuoteYou =
|
|||||||
|
|
||||||
for quotelink in quotelinks
|
for quotelink in quotelinks
|
||||||
if QR.db.get Get.postDataFromLink quotelink
|
if QR.db.get Get.postDataFromLink quotelink
|
||||||
$.add quotelink, $.tn QuoteYou.text
|
$.add quotelink, $.tn '\u00A0(You)'
|
||||||
$.addClass @nodes.root, 'quotesYou'
|
$.addClass @nodes.root, 'quotesYou'
|
||||||
return
|
return
|
||||||
Loading…
x
Reference in New Issue
Block a user