mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Alpha picker only returns items starting with selected letter
This commit is contained in:
parent
1c2d22309a
commit
fba96da954
@ -163,7 +163,7 @@ import 'emby-scroller';
|
|||||||
instance.setFilterStatus(hasFilters);
|
instance.setFilterStatus(hasFilters);
|
||||||
|
|
||||||
if (instance.alphaPicker) {
|
if (instance.alphaPicker) {
|
||||||
query.NameStartsWithOrGreater = instance.alphaPicker.value();
|
query.NameStartsWith = instance.alphaPicker.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
return query;
|
return query;
|
||||||
|
@ -25,7 +25,7 @@ import 'emby-itemscontainer';
|
|||||||
|
|
||||||
const updateFilterControls = () => {
|
const updateFilterControls = () => {
|
||||||
if (this.alphaPicker) {
|
if (this.alphaPicker) {
|
||||||
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
this.alphaPicker.value(query.NameStartsWith);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ import 'emby-itemscontainer';
|
|||||||
if (alphaPickerElement) {
|
if (alphaPickerElement) {
|
||||||
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
||||||
let newValue = e.detail.value;
|
let newValue = e.detail.value;
|
||||||
query.NameStartsWithOrGreater = newValue;
|
query.NameStartsWith = newValue;
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
itemsContainer.refreshItems();
|
itemsContainer.refreshItems();
|
||||||
});
|
});
|
||||||
|
@ -185,7 +185,7 @@ import 'emby-itemscontainer';
|
|||||||
|
|
||||||
const updateFilterControls = (tabContent) => {
|
const updateFilterControls = (tabContent) => {
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
this.alphaPicker.value(query.NameStartsWith);
|
||||||
};
|
};
|
||||||
|
|
||||||
const data = {};
|
const data = {};
|
||||||
@ -216,7 +216,7 @@ import 'emby-itemscontainer';
|
|||||||
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
||||||
const newValue = e.detail.value;
|
const newValue = e.detail.value;
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
query.NameStartsWithOrGreater = newValue;
|
query.NameStartsWith = newValue;
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
reloadItems();
|
reloadItems();
|
||||||
});
|
});
|
||||||
|
@ -186,7 +186,7 @@ import 'emby-itemscontainer';
|
|||||||
|
|
||||||
const updateFilterControls = (tabContent) => {
|
const updateFilterControls = (tabContent) => {
|
||||||
const query = getQuery();
|
const query = getQuery();
|
||||||
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
this.alphaPicker.value(query.NameStartsWith);
|
||||||
};
|
};
|
||||||
|
|
||||||
let savedQueryKey;
|
let savedQueryKey;
|
||||||
@ -219,7 +219,7 @@ import 'emby-itemscontainer';
|
|||||||
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
||||||
const newValue = e.detail.value;
|
const newValue = e.detail.value;
|
||||||
const query = getQuery();
|
const query = getQuery();
|
||||||
query.NameStartsWithOrGreater = newValue;
|
query.NameStartsWith = newValue;
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
reloadItems(tabContent);
|
reloadItems(tabContent);
|
||||||
});
|
});
|
||||||
|
@ -169,7 +169,7 @@ import 'emby-itemscontainer';
|
|||||||
|
|
||||||
const updateFilterControls = (tabContent) => {
|
const updateFilterControls = (tabContent) => {
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
this.alphaPicker.value(query.NameStartsWith);
|
||||||
};
|
};
|
||||||
|
|
||||||
const data = {};
|
const data = {};
|
||||||
@ -201,7 +201,7 @@ import 'emby-itemscontainer';
|
|||||||
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
||||||
const newValue = e.detail.value;
|
const newValue = e.detail.value;
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
query.NameStartsWithOrGreater = newValue;
|
query.NameStartsWith = newValue;
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
reloadItems(tabContent);
|
reloadItems(tabContent);
|
||||||
});
|
});
|
||||||
|
@ -198,7 +198,7 @@ import 'emby-itemscontainer';
|
|||||||
|
|
||||||
function updateFilterControls(tabContent) {
|
function updateFilterControls(tabContent) {
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
self.alphaPicker.value(query.NameStartsWithOrGreater);
|
self.alphaPicker.value(query.NameStartsWith);
|
||||||
}
|
}
|
||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
@ -231,7 +231,7 @@ import 'emby-itemscontainer';
|
|||||||
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
||||||
const newValue = e.detail.value;
|
const newValue = e.detail.value;
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
query.NameStartsWithOrGreater = newValue;
|
query.NameStartsWith = newValue;
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
reloadItems(tabContent);
|
reloadItems(tabContent);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user