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
@@ -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');
});
@@ -372,7 +372,7 @@ footer {
.main .readme table ul li {
margin-bottom: 0;
}
.unstable {
.hidden {
display: none;
}
#stability {
@@ -73,7 +73,7 @@ var self = this;
item.fires.forEach(function (v) {
v = self.find({longname: v})[0] || {longname: v, name: v.split(/#?event:/)[1]};
?>
<li data-name="<?js= v.longname ?>">
<li data-name="<?js= v.longname ?>" class="<?js= (v.stability != 'stable' ? 'unstable' : '') ?>">
<?js= self.linkto(v.longname, v.name) ?>
</li>
<?js