mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add option to disable sliding menus
This commit is contained in:
parent
670d654af8
commit
6daced8387
2 changed files with 14 additions and 0 deletions
|
@ -171,6 +171,16 @@
|
|||
<div class="fieldDescription">${LabelEnableBackdropsHelp}</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<div>
|
||||
<label for="selectEnableItemPreviews">${LabelEnableItemPreviews}</label>
|
||||
<select id="selectEnableItemPreviews" data-mini="true">
|
||||
<option value="true">${OptionYes}</option>
|
||||
<option value="false">${OptionNo}</option>
|
||||
</select>
|
||||
<div>${LabelEnableItemPreviewsHelp}</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<div>
|
||||
<fieldset data-role="controlgroup">
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
$('#selectHomeSection3', page).val(displayPreferences.CustomPrefs.home2 || '').selectmenu("refresh");
|
||||
$('#selectHomeSection4', page).val(displayPreferences.CustomPrefs.home3 || '').selectmenu("refresh");
|
||||
|
||||
$('#selectEnableItemPreviews', page).val(AppSettings.enableItemPreviews().toString().toLowerCase()).selectmenu("refresh");
|
||||
|
||||
$('#chkEnableLibraryTileNames', page).checked(displayPreferences.CustomPrefs.enableLibraryTileNames != '0').checkboxradio("refresh");
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
@ -49,6 +51,8 @@
|
|||
AppSettings.maxStreamingBitrate($('#selectMaxBitrate', page).val());
|
||||
AppSettings.maxChromecastBitrate($('#selectMaxChromecastBitrate', page).val());
|
||||
|
||||
AppSettings.enableItemPreviews($('#selectEnableItemPreviews', page).val() == 'true');
|
||||
|
||||
var userId = getParameterByName('userId') || Dashboard.getCurrentUserId();
|
||||
|
||||
ApiClient.getDisplayPreferences('home', userId, 'webclient').done(function (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue