New: Filter series by type (standard, daily or anime)

This commit is contained in:
Mark McDowall 2014-07-14 23:22:53 -07:00
parent 1368c4376b
commit 0a44744c5e
3 changed files with 39 additions and 1 deletions

View File

@ -185,4 +185,18 @@
.icon-nd-health-error:before {
.icon(@exclamation-sign);
color : @brand-danger;
}
.icon-nd-standard-series:before {
font-weight: bold;
content: 'S';
}
.icon-nd-daily-series:before {
.icon(@calendar-empty);
}
.icon-nd-anime:before {
font-weight: bold;
content: 'A';
}

View File

@ -216,6 +216,27 @@ define(
tooltip : 'Ended Only',
icon : 'icon-stop',
callback: this._setFilter
},
{
key : 'standard',
title : '',
tooltip : 'Standard Series Only',
icon : 'icon-nd-standard-series',
callback: this._setFilter
},
{
key : 'daily',
title : '',
tooltip : 'Daily Series Only',
icon : 'icon-nd-daily-series',
callback: this._setFilter
},
{
key : 'anime',
title : '',
tooltip : 'Anime Only',
icon : 'icon-nd-anime',
callback: this._setFilter
}
]
};

View File

@ -54,7 +54,10 @@ define(
'all' : [null, null],
'continuing' : ['status', 'continuing'],
'ended' : ['status', 'ended'],
'monitored' : ['monitored', true]
'monitored' : ['monitored', true],
'standard' : ['seriesType', 'standard'],
'daily' : ['seriesType', 'daily'],
'anime' : ['seriesType', 'anime']
},
sortMappings: {