Add ability to filter out unstable Fires items

This commit is contained in:
Andreas Hocevar
2014-11-04 21:50:22 +01:00
committed by Tim Schaub
parent 02bfa42736
commit 1d221f8166
3 changed files with 4 additions and 4 deletions

View File

@@ -57,8 +57,8 @@ $(function () {
var unstable = $('.unstable');
var stabilityToggle = $('#stability-toggle');
stabilityToggle.change(function() {
unstable.toggle(!this.checked);
unstable[this.checked ? 'addClass' : 'removeClass']('hidden');
return false;
});
unstable.toggle(!stabilityToggle[0].checked);
unstable[stabilityToggle[0].checked ? 'addClass' : 'removeClass']('hidden');
});