mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #709 - Add option to show all languages in image interface
This commit is contained in:
parent
96c012f3e5
commit
ec6a6c0edf
2 changed files with 16 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
var browsableImageStartIndex = 0;
|
||||
var browsableImageType = 'Primary';
|
||||
var selectedProvider;
|
||||
var allLanguages = false;
|
||||
|
||||
function updateTabs(page, item) {
|
||||
|
||||
|
@ -56,6 +57,7 @@
|
|||
options.type = browsableImageType;
|
||||
options.startIndex = browsableImageStartIndex;
|
||||
options.limit = browsableImagePageSize;
|
||||
options.IncludeAllLanguages = allLanguages;
|
||||
|
||||
var provider = selectedProvider || '';
|
||||
|
||||
|
@ -574,6 +576,14 @@
|
|||
reloadBrowsableImages(page);
|
||||
});
|
||||
|
||||
$('#chkAllLanguages', page).on('change', function () {
|
||||
|
||||
browsableImageStartIndex = 0;
|
||||
allLanguages = this.checked;
|
||||
|
||||
reloadBrowsableImages(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#editItemImagesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue