mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Added 3D filter to movies page
This commit is contained in:
parent
1613e7f451
commit
c2c3297614
5 changed files with 15 additions and 3 deletions
|
@ -54,7 +54,7 @@
|
|||
|
||||
.viewSettings {
|
||||
text-align: center;
|
||||
margin: 1em 0;
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
.libraryItemsGrid th {
|
||||
|
|
|
@ -279,7 +279,7 @@ form, .readOnlyContent {
|
|||
right: 30px;
|
||||
}
|
||||
|
||||
.type-interior > .ui-content {
|
||||
.type-interior > .ui-content, .type-interior > .ui-panel-content-wrap > .ui-content {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
padding-top: 0;
|
||||
|
|
|
@ -112,6 +112,9 @@
|
|||
|
||||
<input class="chkVideoTypeFilter" type="checkbox" name="chkIso" id="chkIso" data-theme="c" data-filter="Iso">
|
||||
<label for="chkIso">Iso</label>
|
||||
|
||||
<input class="chk3DFilter" type="checkbox" name="chk3D" id="chk3D" data-theme="c" data-filter="Digital3D,Sbs3D">
|
||||
<label for="chk3D">3D</label>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<a href="plugincatalog.html" data-role="button" class="ui-btn-active">Plugin Catalog</a>
|
||||
<a href="pluginupdates.html" data-role="button">Automatic Updates</a>
|
||||
</div>
|
||||
<div class="viewSettings">
|
||||
<div class="viewSettings" style="margin: .5em 0;">
|
||||
<button data-mini="true" data-icon="filter" data-inline="true" onclick="$('#filterPanel', $.mobile.activePage).panel( 'toggle' );">Filter</button>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -207,6 +207,13 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('#chk3D', this).on('change', function () {
|
||||
|
||||
query.VideoFormats = this.checked ? this.getAttribute('data-filter') : null;
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#moviesPage", function() {
|
||||
|
||||
reloadItems(this);
|
||||
|
@ -246,6 +253,8 @@
|
|||
}).checkboxradio('refresh');
|
||||
|
||||
$('#selectView', this).val(view).selectmenu('refresh');
|
||||
|
||||
$('#chk3D', this).checked(query.VideoFormats == "Digital3D,Sbs3D").checkboxradio('refresh');
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue