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

hide library monitor from certain operating systems

This commit is contained in:
Luke Pulverenti 2015-10-03 14:13:53 -04:00
parent a651d5208d
commit 2ebea85514
7 changed files with 22 additions and 15 deletions

View file

@ -56,6 +56,15 @@
var page = this;
$('.librarySettingsForm').off('submit', onSubmit).on('submit', onSubmit);
ApiClient.getSystemInfo().done(function (systemInfo) {
if (systemInfo.SupportsLibraryMonitor) {
page.querySelector('.fldLibraryMonitor').classList.remove('hide');
} else {
page.querySelector('.fldLibraryMonitor').classList.add('hide');
}
});
});
})(jQuery, document, window);