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

improve genre displays

This commit is contained in:
Luke Pulverenti 2016-08-13 16:54:29 -04:00
parent 685b06a0e1
commit eb9240a835
6 changed files with 90 additions and 41 deletions

View file

@ -1,6 +1,6 @@
define(['globalize', 'emby-checkbox'], function (globalize) {
function embed(parent, contentType) {
function embed(parent, contentType, libraryOptions) {
return new Promise(function (resolve, reject) {
@ -14,6 +14,10 @@
setContentType(parent, contentType);
if (libraryOptions) {
setLibraryOptions(parent, libraryOptions);
}
resolve();
}
@ -39,17 +43,23 @@
function getLibraryOptions(parent) {
var options = {
EnableVideoArchiveFiles: parent.querySelector('.chkArhiveAsMedia').checked
EnableArchiveMediaFiles: parent.querySelector('.chkArhiveAsMedia').checked
};
options.EnableAudioArchiveFiles = options.EnableVideoArchiveFiles;
options.EnableAudioArchiveFiles = options.EnableArchiveMediaFiles;
return options;
}
function setLibraryOptions(parent, options) {
parent.querySelector('.chkArhiveAsMedia').checked = options.EnableArchiveMediaFiles;;
}
return {
embed: embed,
setContentType: setContentType,
getLibraryOptions: getLibraryOptions
getLibraryOptions: getLibraryOptions,
setLibraryOptions: setLibraryOptions
};
});