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

update tv config

This commit is contained in:
Luke Pulverenti 2015-07-25 16:41:29 -04:00
parent 66d87717d9
commit 74fad00abe
37 changed files with 1783 additions and 71 deletions

View file

@ -13,8 +13,10 @@
listingsId = info.ListingsId;
$('#selectListing', page).val(info.ListingsId || '').selectmenu('refresh');
$('#selectCountry', page).val(info.Country || '').selectmenu('refresh');
$('#txtZipCode', page).val(info.ZipCode || '').trigger('change');
$('#txtUser', page).val(info.Username || '');
page.querySelector('.txtZipCode').value = info.ZipCode || '';
$(page.querySelector('.txtZipCode')).trigger('change');
page.querySelector('.txtUser').value = info.Username || '';
page.querySelector('.txtPass').value = info.Username || '';
});
}
@ -25,8 +27,8 @@
var info = {
Type: 'SchedulesDirect',
Username: $('#txtUser', page).val(),
Password: CryptoJS.SHA1($('#txtPass', page).val()).toString()
Username: page.querySelector('.txtUser').value,
Password: CryptoJS.SHA1(page.querySelector('.txtPass').value).toString()
};
var providerId = getParameterByName('id');
@ -79,7 +81,7 @@
return i.Id == id;
})[0];
info.ZipCode = $('#txtZipCode', page).val();
info.ZipCode = page.querySelector('.txtZipCode').value;
info.Country = $('#selectCountry', page).val();
info.ListingsId = selectedListingsId;
@ -164,7 +166,7 @@
return false;
});
$('#txtZipCode', page).on('change', function () {
$('.txtZipCode', page).on('change', function () {
refreshListings(page, this.value);
});

View file

@ -2,8 +2,8 @@
function reload(page, providerId) {
$('#txtDevicePath', page).val('');
$('#chkFavorite', page).checked(false).checkboxradio('refresh');
page.querySelector('.txtDevicePath').value = '';
page.querySelector('.chkFavorite').checked = false;
if (providerId) {
ApiClient.getNamedConfiguration("livetv").done(function (config) {
@ -12,8 +12,8 @@
return i.Id == providerId;
})[0];
$('#txtDevicePath', page).val(info.Url || '');
$('#chkFavorite', page).checked(info.ImportFavoritesOnly).checkboxradio('refresh');
page.querySelector('.txtDevicePath').value = info.Url || '';
page.querySelector('.chkFavorite').checked = info.ImportFavoritesOnly;
});
}
@ -25,8 +25,8 @@
var info = {
Type: 'hdhomerun',
Url: $('#txtDevicePath', page).val(),
ImportFavoritesOnly: $('#chkFavorite', page).checked()
Url: page.querySelector('.txtDevicePath').value,
ImportFavoritesOnly: page.querySelector('.chkFavorite').checked
};
var id = getParameterByName('id');

View file

@ -2,7 +2,7 @@
function reload(page, providerId) {
$('#txtDevicePath', page).val('');
page.querySelector('.txtDevicePath').value = '';
if (providerId) {
ApiClient.getNamedConfiguration("livetv").done(function (config) {
@ -11,7 +11,7 @@
return i.Id == providerId;
})[0];
$('#txtDevicePath', page).val(info.Url || '');
page.querySelector('.txtDevicePath').value = info.Url || '';
});
}
}
@ -22,8 +22,7 @@
var info = {
Type: 'm3u',
Url: $('#txtDevicePath', page).val(),
ImportFavoritesOnly: $('#chkFavorite', page).checked()
Url: page.querySelector('.txtDevicePath').value
};
var id = getParameterByName('id');