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

create separate media encoding project

This commit is contained in:
Luke Pulverenti 2014-03-27 15:30:21 -04:00 committed by Tim Hobbs
parent c7582e0f7a
commit 10b3b030d8
5 changed files with 67 additions and 10 deletions

View file

@ -28,9 +28,13 @@
} else {
$('.btnSave', page).hide();
}
$('#txtName', page).val(profile.Name);
$('.chkMediaType', page).each(function () {
this.checked = (profile.SupportedMediaTypes || '').split(',').indexOf(this.getAttribute('data-value')) != -1;
}).checkboxradio('refresh');
}
function saveProfile(page, profile) {
@ -78,12 +82,30 @@
}
$(document).on('pageshow', "#dlnaProfilePage", function () {
$(document).on('pageinit', "#dlnaProfilePage", function () {
var page = this;
$('.radioProfileTab', page).on('change', function () {
$('.profileTab', page).hide();
$('.' + this.value, page).show();
});
}).on('pageshow', "#dlnaProfilePage", function () {
var page = this;
loadProfile(page);
}).on('pagebeforeshow', "#dlnaProfilePage", function () {
var page = this;
$('.radioSeriesTimerTab', page).checked(false).checkboxradio('refresh');
$('#radioInfo', page).checked(true).checkboxradio('refresh').trigger('change');
});
window.DlnaProfilePage = {