mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
changed air days to checkboxes
This commit is contained in:
parent
4d87728172
commit
bf93b46294
2 changed files with 29 additions and 17 deletions
|
@ -868,7 +868,12 @@
|
|||
|
||||
$('#select3dFormat', page).val(item.Video3DFormat || "").selectmenu('refresh');
|
||||
|
||||
populateListView($('#listAirDays', page), item.AirDays);
|
||||
$('.chkAirDay', page).each(function() {
|
||||
|
||||
this.checked = (item.AirDays || []).indexOf(this.getAttribute('data-day')) != -1;
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
populateListView($('#listGenres', page), item.Genres);
|
||||
|
||||
populateListView($('#listStudios', page), (item.Studios || []).map(function (element) { return element.Name || ''; }));
|
||||
|
@ -1160,6 +1165,12 @@
|
|||
$('#lock' + field).val(field).slider('refresh');
|
||||
}
|
||||
}
|
||||
|
||||
function getSelectedAirDays(form) {
|
||||
return $('.chkAirDay:checked', form).map(function() {
|
||||
return this.getAttribute('data-day');
|
||||
}).get();
|
||||
}
|
||||
|
||||
function editItemMetadataPage() {
|
||||
|
||||
|
@ -1199,7 +1210,7 @@
|
|||
AwardSummary: $('#txtAwardSummary', form).val(),
|
||||
Overview: $('#txtOverview', form).val(),
|
||||
Status: $('#selectStatus', form).val(),
|
||||
AirDays: editableListViewValues($("#listAirDays", form)),
|
||||
AirDays: getSelectedAirDays(form),
|
||||
AirTime: convertTo12HourFormat($('#txtAirTime', form).val()),
|
||||
Genres: editableListViewValues($("#listGenres", form)),
|
||||
Tags: editableListViewValues($("#listTags", form)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue