Improve behavior

This commit is contained in:
calzoneman 2013-11-16 00:00:03 -06:00
parent 45ad9e44a3
commit b077f3f206
2 changed files with 12 additions and 13 deletions

View file

@ -214,16 +214,15 @@
"#filter_channelsettings",
"#filter_joinquit"
];
$("#filter_all").change(function () {
var checked = $("#filter_all").prop("checked");
logfilters.forEach(function (f) {
$(f).attr("disabled", checked);
});
});
logfilters.unshift("#filter_all");
logfilters.forEach(function (f) {
$(f).change(filterChannelLog);
$(f).change(function () {
if (f !== "#filter_all") {
$("#filter_all").prop("checked", false);
}
filterChannelLog();
});
});
logfilters.shift();
})();