From 93f483f0ae3d247bdb321e200104884e501ff377 Mon Sep 17 00:00:00 2001 From: Shaun Date: Fri, 8 Jan 2016 19:11:29 +1100 Subject: [PATCH] add IMDB, TMDB and TVDB missing filters --- dashboard-ui/reports.html | 9 +++++++++ dashboard-ui/scripts/reports.js | 28 +++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/reports.html b/dashboard-ui/reports.html index 1c5eb320cc..3d223544e8 100644 --- a/dashboard-ui/reports.html +++ b/dashboard-ui/reports.html @@ -131,6 +131,15 @@ + + + + + + + + +
diff --git a/dashboard-ui/scripts/reports.js b/dashboard-ui/scripts/reports.js index d570dabf7f..da3ce301a4 100644 --- a/dashboard-ui/scripts/reports.js +++ b/dashboard-ui/scripts/reports.js @@ -502,8 +502,10 @@ $('#chkMissingRating', page).checked(query.HasOfficialRating == false).checkboxradio('refresh'); $('#chkMissingOverview', page).checked(query.HasOverview == false).checkboxradio('refresh'); $('#chkYearMismatch', page).checked(query.IsYearMismatched == true).checkboxradio('refresh'); - $('#chkIsLocked', page).checked(query.IsLocked == true).checkboxradio('refresh'); + $('#chkMissingImdbId', page).checked(query.HasImdbId == false).checkboxradio('refresh'); + $('#chkMissingTmdbId', page).checked(query.HasTmdbId == false).checkboxradio('refresh'); + $('#chkMissingTvdbId', page).checked(query.HasTvdbId == false).checkboxradio('refresh'); //Episodes $('#chkSpecialEpisode', page).checked(query.ParentIndexNumber == 0).checkboxradio('refresh'); @@ -758,6 +760,30 @@ reloadItems(page); }); + $('#chkMissingImdbId', page).on('change', function () { + + query.StartIndex = 0; + query.HasImdbId = this.checked ? false : null; + + reloadItems(page); + }); + + $('#chkMissingTmdbId', page).on('change', function () { + + query.StartIndex = 0; + query.HasTmdbId = this.checked ? false : null; + + reloadItems(page); + }); + + $('#chkMissingTvdbId', page).on('change', function () { + + query.StartIndex = 0; + query.HasTvdbId = this.checked ? false : null; + + reloadItems(page); + }); + $('#chkYearMismatch', page).on('change', function () { query.StartIndex = 0;