Stay classy, coffee-script.
This commit is contained in:
parent
df64f4628d
commit
1fbe52ba67
@ -612,24 +612,16 @@
|
|||||||
strikethroughQuotes = {
|
strikethroughQuotes = {
|
||||||
init: function() {
|
init: function() {
|
||||||
return g.callbacks.push(function(root) {
|
return g.callbacks.push(function(root) {
|
||||||
var el, quote, _i, _len, _ref, _results;
|
var el, quote, _i, _len, _ref;
|
||||||
if (root.className === 'inline') return;
|
if (root.className === 'inline') return;
|
||||||
_ref = $$('.quotelink', root);
|
_ref = $$('.quotelink', root);
|
||||||
_results = [];
|
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
quote = _ref[_i];
|
quote = _ref[_i];
|
||||||
if ((el = $.id(quote.hash.slice(1))) && el.parentNode.parentNode.parentNode.hidden) {
|
if ((el = $.id(quote.hash.slice(1))) && el.parentNode.parentNode.parentNode.hidden) {
|
||||||
$.addClass(quote, 'filtered');
|
$.addClass(quote, 'filtered');
|
||||||
if (conf['Recursive Filtering']) {
|
if (conf['Recursive Filtering']) root.hidden = true;
|
||||||
_results.push(root.hidden = true);
|
|
||||||
} else {
|
|
||||||
_results.push(void 0);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
_results.push(void 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _results;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -460,6 +460,7 @@ strikethroughQuotes =
|
|||||||
if (el = $.id quote.hash[1..]) and el.parentNode.parentNode.parentNode.hidden
|
if (el = $.id quote.hash[1..]) and el.parentNode.parentNode.parentNode.hidden
|
||||||
$.addClass quote, 'filtered'
|
$.addClass quote, 'filtered'
|
||||||
root.hidden = true if conf['Recursive Filtering']
|
root.hidden = true if conf['Recursive Filtering']
|
||||||
|
return
|
||||||
|
|
||||||
expandComment =
|
expandComment =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user