mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
commit
2c7213d5a3
3 changed files with 77 additions and 7 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
require(['paper-fab', 'paper-item-body', 'paper-icon-item'], function () {
|
||||
var html = '';
|
||||
|
||||
var index = '';
|
||||
var imgUrl;
|
||||
|
||||
for (var i = 0, length = timers.length; i < length; i++) {
|
||||
|
||||
|
@ -31,8 +31,8 @@
|
|||
html += '<paper-icon-item>';
|
||||
|
||||
var program = timer.ProgramInfo || {};
|
||||
var imgUrl;
|
||||
|
||||
imgUrl = null;
|
||||
if (program.ImageTags && program.ImageTags.Primary) {
|
||||
|
||||
imgUrl = ApiClient.getScaledImageUrl(program.Id, {
|
||||
|
|
|
@ -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');
|
||||
|
@ -511,6 +513,19 @@
|
|||
$('#chkFutureEpisode', page).checked(query.IsUnaired == true).checkboxradio('refresh');
|
||||
|
||||
$('#selectIncludeItemTypes').val(query.IncludeItemTypes);
|
||||
|
||||
// isfavorite
|
||||
if (query.IsFavorite == true) {
|
||||
$('#isFavorite').val("true");
|
||||
}
|
||||
else if (query.IsFavorite == false) {
|
||||
$('#isFavorite').val("false");
|
||||
}
|
||||
else {
|
||||
$('#isFavorite').val("-");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
var filtersLoaded;
|
||||
|
@ -599,6 +614,21 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('#isFavorite', page).on('change', function () {
|
||||
|
||||
if (this.value == "true") {
|
||||
query.IsFavorite = true;
|
||||
}
|
||||
else if (this.value == "false") {
|
||||
query.IsFavorite = false;
|
||||
}
|
||||
else {
|
||||
query.IsFavorite = null;
|
||||
}
|
||||
query.StartIndex = 0;
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('.chkStandardFilter', this).on('change', function () {
|
||||
|
||||
var filterName = this.getAttribute('data-filter');
|
||||
|
@ -758,6 +788,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue