1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added unaired/missing indicators

This commit is contained in:
Luke Pulverenti 2013-10-16 22:43:55 -04:00
parent b23426bb93
commit eeb941062b
3 changed files with 34 additions and 11 deletions

View file

@ -180,18 +180,22 @@
$('#chkMissingEpisode', this).on('change', function () {
query.LocationTypes = this.checked ? "virtual" : null;
var futureChecked = $('#chkFutureEpisode', page).checked();
query.LocationTypes = this.checked || futureChecked ? "virtual" : null;
query.HasPremiereDate = this.checked || futureChecked ? true : null;
query.MaxPremiereDate = this.checked ? getDateFormat(new Date()) : null;
query.HasPremiereDate = this.checked ? true : null;
reloadItems(page);
});
$('#chkFutureEpisode', this).on('change', function () {
query.LocationTypes = this.checked ? "virtual" : null;
var missingChecked = $('#chkMissingEpisode', page).checked();
query.LocationTypes = this.checked || missingChecked ? "virtual" : null;
query.HasPremiereDate = this.checked || missingChecked ? true : null;
query.MinPremiereDate = this.checked ? getDateFormat(new Date()) : null;
query.HasPremiereDate = this.checked ? true : null;
reloadItems(page);
});