Hide unstable items by default, provide checkbox for toggling

This commit is contained in:
Tim Schaub
2014-08-22 17:30:29 -06:00
parent ecaedff890
commit a8999f601b
3 changed files with 23 additions and 2 deletions

View File

@@ -52,4 +52,13 @@ $(function () {
$(window).on('resize', _onResize);
_onResize();
});
// show/hide unstable items
var unstable = $('.unstable');
var stabilityToggle = $('#stability-toggle');
stabilityToggle.change(function() {
unstable.toggle(!this.checked);
return false;
});
unstable.toggle(!stabilityToggle[0].checked);
});