mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added players filter to games view
This commit is contained in:
parent
a67cfcd763
commit
77d5abf6d8
2 changed files with 42 additions and 1 deletions
|
@ -99,6 +99,17 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('.radioPlayers', this).on('click', function () {
|
||||
|
||||
query.StartIndex = 0;
|
||||
|
||||
var val = this.getAttribute('data-value');
|
||||
|
||||
query.MinPlayers = val == "all" ? null : val;
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('.chkStandardFilter', this).on('change', function () {
|
||||
|
||||
var filterName = this.getAttribute('data-filter');
|
||||
|
@ -197,6 +208,19 @@
|
|||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
$('.radioPlayers', this).each(function () {
|
||||
|
||||
var val = this.getAttribute('data-value');
|
||||
|
||||
if (val == "all") {
|
||||
|
||||
this.checked = query.MinPlayers == null;
|
||||
} else {
|
||||
this.checked = query.MinPlayers == val;
|
||||
}
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
$('.chkStandardFilter', this).each(function () {
|
||||
|
||||
var filters = "," + (query.Filters || "");
|
||||
|
@ -206,7 +230,6 @@
|
|||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
$('#selectView', this).val(view).selectmenu('refresh');
|
||||
|
||||
$('#chkTrailer', this).checked(query.HasTrailer == true).checkboxradio('refresh');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue