mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix case sensitive file names
This commit is contained in:
parent
12f4de7741
commit
8ff293076b
8 changed files with 57 additions and 4 deletions
|
@ -48,6 +48,10 @@
|
||||||
<div class="fieldDescription">${LabelTheseFeaturesRequireSupporterHelpAndTrailers}</div>
|
<div class="fieldDescription">${LabelTheseFeaturesRequireSupporterHelpAndTrailers}</div>
|
||||||
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="txtNumTrailers">${LabelNumberTrailerToPlay}</label>
|
||||||
|
<input type="number" id="txtNumTrailers" data-mini="true" min="1" max="10" step="1" />
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="chkEnableParentalControl">${LabelEnableIntroParentalControl}</label>
|
<label for="chkEnableParentalControl">${LabelEnableIntroParentalControl}</label>
|
||||||
<input type="checkbox" id="chkEnableParentalControl" data-mini="true" />
|
<input type="checkbox" id="chkEnableParentalControl" data-mini="true" />
|
||||||
|
|
|
@ -133,6 +133,10 @@
|
||||||
display: none!important;
|
display: none!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.idlePlayer video {
|
||||||
|
cursor: none;
|
||||||
|
}
|
||||||
|
|
||||||
#mediaPlayer .sliderContainer {
|
#mediaPlayer .sliderContainer {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
|
|
|
@ -43,13 +43,19 @@
|
||||||
<br />
|
<br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<label for="txtPortNumber">${LabelHttpServerPortNumber}</label>
|
<label for="txtPortNumber">${LabelLocalHttpServerPortNumber}</label>
|
||||||
<input type="number" id="txtPortNumber" name="txtPortNumber" pattern="[0-9]*" required="required" min="1" data-mini="true" />
|
<input type="number" id="txtPortNumber" name="txtPortNumber" pattern="[0-9]*" required="required" min="1" data-mini="true" />
|
||||||
|
<div class="fieldDescription">${LabelLocalHttpServerPortNumberHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="chkEnableUpnp">${LabelEnableAutomaticPortMapping}</label>
|
<label for="txtPublicPort">${LabelPublicPort}</label>
|
||||||
|
<input type="number" id="txtPublicPort" pattern="[0-9]*" required="required" min="1" data-mini="true" />
|
||||||
|
<div class="fieldDescription">${LabelPublicPortHelp}</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="chkEnableUpnp">${LabelEnableAutomaticPortMap}</label>
|
||||||
<input type="checkbox" id="chkEnableUpnp" data-mini="true" />
|
<input type="checkbox" id="chkEnableUpnp" data-mini="true" />
|
||||||
<div class="fieldDescription">${LabelEnableAutomaticPortHelp}</div>
|
<div class="fieldDescription">${LabelEnableAutomaticPortMapHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtDdns">${LabelExternalDDNS}</label>
|
<label for="txtDdns">${LabelExternalDDNS}</label>
|
||||||
|
|
|
@ -32,6 +32,14 @@
|
||||||
<label for="chkSaveMetadataHidden">${OptionSaveMetadataAsHidden}</label>
|
<label for="chkSaveMetadataHidden">${OptionSaveMetadataAsHidden}</label>
|
||||||
<input type="checkbox" id="chkSaveMetadataHidden" data-mini="true" />
|
<input type="checkbox" id="chkSaveMetadataHidden" data-mini="true" />
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="selectDateAdded">${LabelDateAddedBehavior}</label>
|
||||||
|
<select data-mini="true" id="selectDateAdded">
|
||||||
|
<option value="0">${OptionDateAddedImportTime}</option>
|
||||||
|
<option value="1">${OptionDateAddedFileTime}</option>
|
||||||
|
</select>
|
||||||
|
<div class="fieldDescription">${LabelDateAddedBehaviorHelp}</div>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div data-role="collapsible">
|
<div data-role="collapsible">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
$('#chkEnableParentalControl', page).checked(config.EnableIntrosParentalControl).checkboxradio('refresh');
|
$('#chkEnableParentalControl', page).checked(config.EnableIntrosParentalControl).checkboxradio('refresh');
|
||||||
|
|
||||||
$('#txtCustomIntrosPath', page).val(config.CustomIntroPath || '');
|
$('#txtCustomIntrosPath', page).val(config.CustomIntroPath || '');
|
||||||
|
$('#txtNumTrailers', page).val(config.TrailerLimit);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
@ -69,6 +70,7 @@
|
||||||
ApiClient.getNamedConfiguration("cinemamode").done(function (config) {
|
ApiClient.getNamedConfiguration("cinemamode").done(function (config) {
|
||||||
|
|
||||||
config.CustomIntroPath = $('#txtCustomIntrosPath', page).val();
|
config.CustomIntroPath = $('#txtCustomIntrosPath', page).val();
|
||||||
|
config.TrailerLimit = $('#txtNumTrailers', page).val();
|
||||||
|
|
||||||
config.EnableIntrosForMovies = $('#chkMovies', page).checked();
|
config.EnableIntrosForMovies = $('#chkMovies', page).checked();
|
||||||
config.EnableIntrosForEpisodes = $('#chkEpisodes', page).checked();
|
config.EnableIntrosForEpisodes = $('#chkEpisodes', page).checked();
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
})).val(config.UICulture).selectmenu('refresh');
|
})).val(config.UICulture).selectmenu('refresh');
|
||||||
|
|
||||||
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
|
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
|
||||||
|
$('#txtPublicPort', page).val(config.PublicPort);
|
||||||
|
|
||||||
$('#txtDdns', page).val(config.WanDdns || '');
|
$('#txtDdns', page).val(config.WanDdns || '');
|
||||||
|
|
||||||
|
@ -81,6 +82,8 @@
|
||||||
config.UICulture = $('#selectLocalizationLanguage', form).val();
|
config.UICulture = $('#selectLocalizationLanguage', form).val();
|
||||||
|
|
||||||
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
|
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
|
||||||
|
config.PublicPort = $('#txtPublicPort', form).val();
|
||||||
|
|
||||||
config.EnableUPnP = $('#chkEnableUpnp', form).checked();
|
config.EnableUPnP = $('#chkEnableUpnp', form).checked();
|
||||||
|
|
||||||
config.WanDdns = $('#txtDdns', form).val();
|
config.WanDdns = $('#txtDdns', form).val();
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
self.resetEnhancements = function () {
|
self.resetEnhancements = function () {
|
||||||
$("#mediaPlayer").hide();
|
$("#mediaPlayer").hide();
|
||||||
$('#videoPlayer').removeClass('fullscreenVideo');
|
$('#videoPlayer').removeClass('fullscreenVideo').removeClass('idlePlayer');
|
||||||
$('.hiddenOnIdle').removeClass("inactive");
|
$('.hiddenOnIdle').removeClass("inactive");
|
||||||
$("video").remove();
|
$("video").remove();
|
||||||
};
|
};
|
||||||
|
@ -497,6 +497,7 @@
|
||||||
|
|
||||||
if (idleState == true) {
|
if (idleState == true) {
|
||||||
$('.hiddenOnIdle').removeClass("inactive");
|
$('.hiddenOnIdle').removeClass("inactive");
|
||||||
|
$('#videoPlayer').removeClass('idlePlayer');
|
||||||
}
|
}
|
||||||
|
|
||||||
idleState = false;
|
idleState = false;
|
||||||
|
@ -504,6 +505,7 @@
|
||||||
timeout = window.setTimeout(function () {
|
timeout = window.setTimeout(function () {
|
||||||
idleState = true;
|
idleState = true;
|
||||||
$('.hiddenOnIdle').addClass("inactive");
|
$('.hiddenOnIdle').addClass("inactive");
|
||||||
|
$('#videoPlayer').addClass('idlePlayer');
|
||||||
}, 4000);
|
}, 4000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,13 @@
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function loadMetadataConfig(page, config) {
|
||||||
|
|
||||||
|
|
||||||
|
$('#selectDateAdded', page).val((config.UseFileCreationTimeForDateAdded ? '1' : '0')).selectmenu("refresh");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function loadChapters(page, config, providers) {
|
function loadChapters(page, config, providers) {
|
||||||
|
|
||||||
if (providers.length) {
|
if (providers.length) {
|
||||||
|
@ -167,6 +174,12 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ApiClient.getNamedConfiguration("metadata").done(function (metadata) {
|
||||||
|
|
||||||
|
loadMetadataConfig(page, metadata);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
var promise1 = ApiClient.getNamedConfiguration("chapters");
|
var promise1 = ApiClient.getNamedConfiguration("chapters");
|
||||||
var promise2 = ApiClient.getJSON(ApiClient.getUrl("Providers/Chapters"));
|
var promise2 = ApiClient.getJSON(ApiClient.getUrl("Providers/Chapters"));
|
||||||
|
|
||||||
|
@ -200,6 +213,16 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function saveMetadata(form) {
|
||||||
|
|
||||||
|
ApiClient.getNamedConfiguration("metadata").done(function (config) {
|
||||||
|
|
||||||
|
config.UseFileCreationTimeForDateAdded = $('#selectDateAdded', form).val() == '1';
|
||||||
|
|
||||||
|
ApiClient.updateNamedConfiguration("metadata", config);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function saveChapters(form) {
|
function saveChapters(form) {
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("chapters").done(function (config) {
|
ApiClient.getNamedConfiguration("chapters").done(function (config) {
|
||||||
|
@ -237,6 +260,7 @@
|
||||||
|
|
||||||
saveAdvancedConfig(form);
|
saveAdvancedConfig(form);
|
||||||
saveChapters(form);
|
saveChapters(form);
|
||||||
|
saveMetadata(form);
|
||||||
|
|
||||||
// Disable default form submission
|
// Disable default form submission
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue