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:
parent
c7582e0f7a
commit
10b3b030d8
5 changed files with 67 additions and 10 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue