mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added auto-organize setting
This commit is contained in:
parent
31454fbeb1
commit
e2c3d8d175
41 changed files with 151 additions and 66 deletions
|
@ -8,6 +8,7 @@
|
|||
$('#selectGuideDays', page).val(config.GuideDays || '').selectmenu('refresh');
|
||||
|
||||
$('#chkMovies', page).checked(config.EnableMovieProviders);
|
||||
$('#chkOrganize', page).checked(config.EnableAutoOrganize);
|
||||
|
||||
$('#txtRecordingPath', page).val(config.RecordingPath || '');
|
||||
|
||||
|
@ -24,6 +25,7 @@
|
|||
|
||||
config.GuideDays = $('#selectGuideDays', form).val() || null;
|
||||
config.EnableMovieProviders = $('#chkMovies', form).checked();
|
||||
config.EnableAutoOrganize = $('#chkOrganize', form).checked();
|
||||
config.RecordingPath = $('#txtRecordingPath', form).val() || null;
|
||||
|
||||
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
|
|
|
@ -101,32 +101,37 @@
|
|||
var html = '';
|
||||
var i, length, plugin;
|
||||
|
||||
var currentCategory = Globalize.translate('HeaderTopPlugins');
|
||||
html += '<div class="detailSectionHeader">' + currentCategory + '</div>';
|
||||
var topPlugins = allPlugins.slice(0).sort(function (a, b) {
|
||||
var currentCategory;
|
||||
|
||||
if (a.installs > b.installs) {
|
||||
return 1;
|
||||
if (!options.categories) {
|
||||
currentCategory = Globalize.translate('HeaderTopPlugins');
|
||||
html += '<div class="detailSectionHeader">' + currentCategory + '</div>';
|
||||
var topPlugins = allPlugins.slice(0).sort(function (a, b) {
|
||||
|
||||
if (a.installs > b.installs) {
|
||||
return 1;
|
||||
}
|
||||
if (b.installs > a.installs) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
var aName = (a.name);
|
||||
var bName = (b.name);
|
||||
|
||||
if (aName > bName) {
|
||||
return 1;
|
||||
}
|
||||
if (bName > aName) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
var limit = screen.availWidth >= 1920 ? 15 : 12;
|
||||
for (i = 0, length = Math.min(topPlugins.length, limit) ; i < length; i++) {
|
||||
html += getPluginHtml(topPlugins[i], options, installedPlugins);
|
||||
}
|
||||
if (b.installs > a.installs) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
var aName = (a.name);
|
||||
var bName = (b.name);
|
||||
|
||||
if (aName > bName) {
|
||||
return 1;
|
||||
}
|
||||
if (bName > aName) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
for (i = 0, length = Math.min(topPlugins.length, 12) ; i < length; i++) {
|
||||
html += getPluginHtml(topPlugins[i], options, installedPlugins);
|
||||
}
|
||||
|
||||
for (i = 0, length = availablePlugins.length; i < length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue