1
0
Fork 0
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:
Luke Pulverenti 2013-04-07 09:34:46 -04:00
parent 1613e7f451
commit c2c3297614
5 changed files with 15 additions and 3 deletions

View file

@ -54,7 +54,7 @@
.viewSettings {
text-align: center;
margin: 1em 0;
margin: 1.5em 0;
}
.libraryItemsGrid th {

View file

@ -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;

View file

@ -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>

View file

@ -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>

View file

@ -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);