update music

This commit is contained in:
Luke Pulverenti 2016-06-17 16:07:41 -04:00
parent fc6e56d05d
commit ec0b19ecca
3 changed files with 2 additions and 20 deletions

View File

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

View File

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

View File

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