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

update channel view

This commit is contained in:
Luke Pulverenti 2016-03-29 23:10:01 -04:00
parent 0b7e7078bd
commit cb3b17ee4a
9 changed files with 52 additions and 85 deletions

View file

@ -247,21 +247,9 @@
var page = this;
$('.chkPremiumFilter', page).on('change', function () {
$('#selectSystem', page).on('change', function () {
if (this.checked) {
query.IsPremium = false;
} else {
query.IsPremium = null;
}
reloadList(page);
});
$('.radioPackageTypes', page).on('change', function () {
var val = $('.radioPackageTypes:checked', page).val();
query.TargetSystems = val;
query.TargetSystems = this.value;
reloadList(page);
});
@ -275,21 +263,6 @@
var page = this;
$(".radioPackageTypes", page).each(function () {
this.checked = this.value == query.TargetSystems;
}).checkboxradio('refresh');
// Reset form values using the last used query
$('.chkPremiumFilter', page).each(function () {
var filters = query.IsPremium || false;
this.checked = filters;
}).checkboxradio('refresh');
reloadList(page);
});