Merge branch 'v3'

This commit is contained in:
Zixaphir 2014-01-07 10:28:51 -07:00
commit 59e0cacdfa
3 changed files with 8 additions and 10 deletions

View File

@ -7299,9 +7299,9 @@
return true; return true;
}, },
toggle: function() { toggle: function() {
var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
if (QuoteThreading.enabled = this.checked) { if (QuoteThreading.enabled = this.checked) {
return QuoteThreading.force(); QuoteThreading.force();
} else { } else {
thread = $('.thread'); thread = $('.thread');
posts = []; posts = [];
@ -7327,12 +7327,10 @@
$.rm(container); $.rm(container);
} }
_ref1 = $$('.threadOP'); _ref1 = $$('.threadOP');
_results = [];
for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) {
post = _ref1[_k]; post = _ref1[_k];
_results.push($.rmClass(post, 'threadOP')); $.rmClass(post, 'threadOP');
} }
return _results;
} }
}, },
kb: function() { kb: function() {

View File

@ -7303,9 +7303,9 @@
return true; return true;
}, },
toggle: function() { toggle: function() {
var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
if (QuoteThreading.enabled = this.checked) { if (QuoteThreading.enabled = this.checked) {
return QuoteThreading.force(); QuoteThreading.force();
} else { } else {
thread = $('.thread'); thread = $('.thread');
posts = []; posts = [];
@ -7331,12 +7331,10 @@
$.rm(container); $.rm(container);
} }
_ref1 = $$('.threadOP'); _ref1 = $$('.threadOP');
_results = [];
for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) {
post = _ref1[_k]; post = _ref1[_k];
_results.push($.rmClass(post, 'threadOP')); $.rmClass(post, 'threadOP');
} }
return _results;
} }
}, },
kb: function() { kb: function() {

View File

@ -103,6 +103,8 @@ QuoteThreading =
containers = $$ '.threadContainer', thread containers = $$ '.threadContainer', thread
$.rm container for container in containers $.rm container for container in containers
$.rmClass post, 'threadOP' for post in $$ '.threadOP' $.rmClass post, 'threadOP' for post in $$ '.threadOP'
return
kb: -> kb: ->
control = $.id 'threadingControl' control = $.id 'threadingControl'