mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
update music
This commit is contained in:
parent
fc6e56d05d
commit
ec0b19ecca
@ -99,8 +99,6 @@
|
|||||||
<div class="alphaPicker alphabetPicker vertical">
|
<div class="alphaPicker alphabetPicker vertical">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="itemsContainer itemsContainerWithAlphaPicker" style="max-width: 1000px;margin: 0 auto;">
|
|
||||||
</div>
|
|
||||||
<div style="text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;padding:.7em .5em;">
|
<div style="text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;padding:.7em .5em;">
|
||||||
<div class="paging"></div>
|
<div class="paging"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker'], function (events, libraryBrowser, imageLoader, alphaPicker) {
|
define(['events', 'libraryBrowser', 'imageLoader'], function (events, libraryBrowser, imageLoader) {
|
||||||
|
|
||||||
return function (view, params, tabContent) {
|
return function (view, params, tabContent) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker'], function (events, libraryBrowser, imageLoader, alphaPicker) {
|
define(['events', 'libraryBrowser', 'imageLoader'], function (events, libraryBrowser, imageLoader) {
|
||||||
|
|
||||||
return function (view, params, tabContent) {
|
return function (view, params, tabContent) {
|
||||||
|
|
||||||
@ -131,26 +131,10 @@
|
|||||||
|
|
||||||
function updateFilterControls(tabContent) {
|
function updateFilterControls(tabContent) {
|
||||||
|
|
||||||
var query = getQuery(tabContent);
|
|
||||||
self.alphaPicker.value(query.NameStartsWithOrGreater);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function initPage(tabContent) {
|
function initPage(tabContent) {
|
||||||
|
|
||||||
var alphaPickerElement = tabContent.querySelector('.alphaPicker');
|
|
||||||
alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
|
|
||||||
var newValue = e.detail.value;
|
|
||||||
var query = getQuery(tabContent);
|
|
||||||
query.NameStartsWithOrGreater = newValue;
|
|
||||||
query.StartIndex = 0;
|
|
||||||
reloadItems(tabContent);
|
|
||||||
});
|
|
||||||
|
|
||||||
self.alphaPicker = new alphaPicker({
|
|
||||||
element: alphaPickerElement,
|
|
||||||
valueChangeEvent: 'click'
|
|
||||||
});
|
|
||||||
|
|
||||||
tabContent.querySelector('.btnFilter').addEventListener('click', function () {
|
tabContent.querySelector('.btnFilter').addEventListener('click', function () {
|
||||||
self.showFilterMenu();
|
self.showFilterMenu();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user