Add ability to filter out unstable Fires items
This commit is contained in:
committed by
Tim Schaub
parent
02bfa42736
commit
1d221f8166
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user