mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add custom intros path
This commit is contained in:
parent
f03d5f6fd2
commit
26ac527517
4 changed files with 55 additions and 18 deletions
|
@ -51,7 +51,7 @@
|
||||||
<label for="txtDownloadSizeLimit">${LabelChannelDownloadSizeLimit}</label>
|
<label for="txtDownloadSizeLimit">${LabelChannelDownloadSizeLimit}</label>
|
||||||
<input type="number" id="txtDownloadSizeLimit" pattern="[0-9]*" min="0.1" step=".1" data-mini="true" />
|
<input type="number" id="txtDownloadSizeLimit" pattern="[0-9]*" min="0.1" step=".1" data-mini="true" />
|
||||||
<div class="fieldDescription">${LabelChannelDownloadSizeLimitHelp}</div>
|
<div class="fieldDescription">${LabelChannelDownloadSizeLimitHelp}</div>
|
||||||
<div class="fieldDescription" style="margin-top: 5px;"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtDownloadAge">${LabelChannelDownloadAge}</label>
|
<label for="txtDownloadAge">${LabelChannelDownloadAge}</label>
|
||||||
|
|
|
@ -18,9 +18,7 @@
|
||||||
<form class="cinemaModeConfigurationForm">
|
<form class="cinemaModeConfigurationForm">
|
||||||
|
|
||||||
<p>${CinemaModeConfigurationHelp}</p>
|
<p>${CinemaModeConfigurationHelp}</p>
|
||||||
<p><a href="supporter.html">${ButtonThisFeatureRequiresSupporter}</a></p>
|
<div style="margin-top:2em;">
|
||||||
<br />
|
|
||||||
<div>
|
|
||||||
<fieldset data-role="controlgroup">
|
<fieldset data-role="controlgroup">
|
||||||
<legend>${LabelEnableCinemaModeFor}</legend>
|
<legend>${LabelEnableCinemaModeFor}</legend>
|
||||||
<label for="chkMovies">${OptionMovies}</label>
|
<label for="chkMovies">${OptionMovies}</label>
|
||||||
|
@ -30,27 +28,36 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
|
||||||
<fieldset data-role="controlgroup">
|
|
||||||
<legend>${LabelEnableTheFollowingIntros}</legend>
|
|
||||||
<label for="chkMyMovieTrailers">${OptionTrailersFromMyMovies}</label>
|
|
||||||
<input type="checkbox" id="chkMyMovieTrailers" />
|
|
||||||
<label for="chkUpcomingTheaterTrailers">${OptionUpcomingMoviesInTheaters}</label>
|
|
||||||
<input type="checkbox" id="chkUpcomingTheaterTrailers" />
|
|
||||||
</fieldset>
|
|
||||||
<div class="fieldDescription">${LabelEnableTheFollowingIntrosHelp}</div>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<label for="chkUnwatchedOnly">${LabelLimitIntrosToUnwatchedContent}</label>
|
<label for="chkMyMovieTrailers">${OptionTrailersFromMyMovies}</label>
|
||||||
<input type="checkbox" id="chkUnwatchedOnly" data-mini="true" />
|
<input type="checkbox" id="chkMyMovieTrailers" data-mini="true" />
|
||||||
|
<div class="fieldDescription">${OptionTrailersFromMyMoviesHelp}</div>
|
||||||
|
<div class="fieldDescription"><a href="http://mediabrowser.tv/community/index.php?/topic/674-media-files-folders-structure/" target="_blank">${ButtonLearnMore}</a></div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="chkUpcomingTheaterTrailers">${OptionUpcomingMoviesInTheaters}</label>
|
||||||
|
<input type="checkbox" id="chkUpcomingTheaterTrailers" data-mini="true" />
|
||||||
|
<div class="fieldDescription">${LabelThisFeatureRequiresSupporterHelp}</div>
|
||||||
|
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
||||||
</li>
|
</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" />
|
||||||
<div class="fieldDescription">${LabelEnableIntroParentalControlHelp}</div>
|
<div class="fieldDescription">${LabelEnableIntroParentalControlHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="chkUnwatchedOnly">${LabelLimitIntrosToUnwatchedContent}</label>
|
||||||
|
<input type="checkbox" id="chkUnwatchedOnly" data-mini="true" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="txtCustomIntrosPath">${LabelCustomIntrosPath}</label>
|
||||||
|
<div style="display: inline-block; width: 92%;">
|
||||||
|
<input type="text" id="txtCustomIntrosPath" />
|
||||||
|
</div>
|
||||||
|
<button id="btnSelectCustomIntrosPath" type="button" data-icon="search" data-iconpos="notext" data-inline="true">${ButtonSelectDirectory}</button>
|
||||||
|
<div class="fieldDescription">${LabelCustomIntrosPathHelp}</div>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br />
|
<br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
|
|
|
@ -274,6 +274,10 @@ h1 .imageLink {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fieldDescription + .fieldDescription {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.ulForm {
|
.ulForm {
|
||||||
margin-bottom: 20px !important;
|
margin-bottom: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,34 @@
|
||||||
$('#chkUnwatchedOnly', page).checked(!config.EnableIntrosForWatchedContent).checkboxradio('refresh');
|
$('#chkUnwatchedOnly', page).checked(!config.EnableIntrosForWatchedContent).checkboxradio('refresh');
|
||||||
$('#chkEnableParentalControl', page).checked(config.EnableIntrosParentalControl).checkboxradio('refresh');
|
$('#chkEnableParentalControl', page).checked(config.EnableIntrosParentalControl).checkboxradio('refresh');
|
||||||
|
|
||||||
|
$('#txtCustomIntrosPath', page).val(config.CustomIntroPath || '');
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('pageshow', "#cinemaModeConfigurationPage", function () {
|
$(document).on('pageinit', "#cinemaModeConfigurationPage", function () {
|
||||||
|
|
||||||
|
var page = this;
|
||||||
|
|
||||||
|
$('#btnSelectCustomIntrosPath', page).on("click.selectDirectory", function () {
|
||||||
|
|
||||||
|
var picker = new DirectoryBrowser(page);
|
||||||
|
|
||||||
|
picker.show({
|
||||||
|
|
||||||
|
callback: function (path) {
|
||||||
|
|
||||||
|
if (path) {
|
||||||
|
$('#txtCustomIntrosPath', page).val(path);
|
||||||
|
}
|
||||||
|
picker.close();
|
||||||
|
},
|
||||||
|
|
||||||
|
header: Globalize.translate('HeaderSelectCustomIntrosPath')
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}).on('pageshow', "#cinemaModeConfigurationPage", function () {
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
|
@ -41,6 +65,8 @@
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("cinemamode").done(function (config) {
|
ApiClient.getNamedConfiguration("cinemamode").done(function (config) {
|
||||||
|
|
||||||
|
config.CustomIntroPath = $('#txtCustomIntrosPath', page).val();
|
||||||
|
|
||||||
config.EnableIntrosForMovies = $('#chkMovies', page).checked();
|
config.EnableIntrosForMovies = $('#chkMovies', page).checked();
|
||||||
config.EnableIntrosForEpisodes = $('#chkEpisodes', page).checked();
|
config.EnableIntrosForEpisodes = $('#chkEpisodes', page).checked();
|
||||||
config.EnableIntrosFromMoviesInLibrary = $('#chkMyMovieTrailers', page).checked();
|
config.EnableIntrosFromMoviesInLibrary = $('#chkMyMovieTrailers', page).checked();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue