mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add subtitle profiles to dlna profile editor
This commit is contained in:
parent
fc4f9788fa
commit
1f6ce6a409
7 changed files with 224 additions and 78 deletions
|
@ -278,6 +278,16 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="collapsible">
|
||||
<h2>${HeaderSubtitleProfiles}</h2>
|
||||
<div>
|
||||
<p>${HeaderSubtitleProfilesHelp}</p>
|
||||
<p><button type="button" class="btnAddSubtitleProfile" data-icon="plus">${ButtonAdd}</button></p>
|
||||
<div class="subtitleProfileList"></div>
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="collapsible">
|
||||
<h2>${HeaderXmlSettings}</h2>
|
||||
<div>
|
||||
|
@ -687,6 +697,52 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div data-role="popup" id="subtitleProfilePopup" class="popup">
|
||||
|
||||
<div class="ui-bar-a" style="text-align: center; padding: 0 20px;">
|
||||
<h3>${HeaderSubtitleProfile}</h3>
|
||||
</div>
|
||||
|
||||
<div data-role="content">
|
||||
<form class="subtitleProfileForm">
|
||||
|
||||
<div style="margin: 1em 0;">
|
||||
<label for="txtSubtitleProfileFormat">${LabelFormat}</label>
|
||||
<input type="text" id="txtSubtitleProfileFormat" data-mini="true" required="required" />
|
||||
<div class="fieldDescription">${LabelSubtitleFormatHelp}</div>
|
||||
</div>
|
||||
|
||||
<div style="margin: 1em 0;">
|
||||
<label for="selectSubtitleProfileMethod">${LabelMethod}</label>
|
||||
<select id="selectSubtitleProfileMethod" data-mini="true" required="required">
|
||||
<option value="Embed">${OptionEmbedSubtitles}</option>
|
||||
<option value="External">${OptionExternallyDownloaded}</option>
|
||||
<option value="Hls">${OptionHlsSegmentedSubtitles}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div style="margin: 1em 0;">
|
||||
<label for="selectSubtitleProfileDidlMode">${LabelDidlMode}</label>
|
||||
<select id="selectSubtitleProfileDidlMode" data-mini="true">
|
||||
<option value="">${OptionResElement}</option>
|
||||
<option value="CaptionInfoEx">${OptionCaptionInfoExSamsung}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<button type="submit" data-theme="b" data-icon="check" data-mini="true">
|
||||
${ButtonOk}
|
||||
</button>
|
||||
<button type="button" data-icon="delete" onclick="$(this).parents('.popup').popup('close');" data-mini="true">
|
||||
${ButtonCancel}
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('.dlnaProfileForm').off('submit', DlnaProfilePage.onSubmit).on('submit', DlnaProfilePage.onSubmit);
|
||||
$('.editDirectPlayProfileForm').off('submit', DlnaProfilePage.onDirectPlayFormSubmit).on('submit', DlnaProfilePage.onDirectPlayFormSubmit);
|
||||
|
@ -696,7 +752,8 @@
|
|||
$('.editResponseProfileForm').off('submit', DlnaProfilePage.onResponseProfileFormSubmit).on('submit', DlnaProfilePage.onResponseProfileFormSubmit);
|
||||
$('.identificationHeaderForm').off('submit', DlnaProfilePage.onIdentificationHeaderFormSubmit).on('submit', DlnaProfilePage.onIdentificationHeaderFormSubmit);
|
||||
$('.xmlAttributeForm').off('submit', DlnaProfilePage.onXmlAttributeFormSubmit).on('submit', DlnaProfilePage.onXmlAttributeFormSubmit);
|
||||
$('.subtitleProfileForm').off('submit', DlnaProfilePage.onSubtitleProfileFormSubmit).on('submit', DlnaProfilePage.onSubtitleProfileFormSubmit);
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue