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

Merge pull request #2061 from cvium/remove_advanced_toggle_libraryeditor

Remove advanced toggle for library editor
This commit is contained in:
Bill Thornton 2020-11-21 16:01:57 -05:00 committed by GitHub
commit c7f365b776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 43 deletions

View file

@ -377,13 +377,6 @@ import '../../elements/emby-input/emby-input';
});
}
export function setAdvancedVisible(parent, visible) {
const elems = parent.querySelectorAll('.advanced');
for (let i = 0; i < elems.length; i++) {
visible ? elems[i].classList.remove('advancedHide') : elems[i].classList.add('advancedHide');
}
}
export function setContentType(parent, contentType) {
if (contentType === 'homevideos' || contentType === 'photos') {
parent.querySelector('.chkEnablePhotosContainer').classList.remove('hide');
@ -590,6 +583,5 @@ export default {
embed: embed,
setContentType: setContentType,
getLibraryOptions: getLibraryOptions,
setLibraryOptions: setLibraryOptions,
setAdvancedVisible: setAdvancedVisible
setLibraryOptions: setLibraryOptions
};