Update list.js

This commit is contained in:
Cameron 2020-08-04 21:43:24 +01:00
parent 5ba05e6197
commit 8e17d603a8

View File

@ -722,11 +722,9 @@ class ItemsView {
this.itemsContainer.setAttribute('data-refreshinterval', '300000'); this.itemsContainer.setAttribute('data-refreshinterval', '300000');
} }
let i;
let length;
const btnViewSettings = view.querySelectorAll('.btnViewSettings'); const btnViewSettings = view.querySelectorAll('.btnViewSettings');
for (i = 0, length = btnViewSettings.length; i < length; i++) { for (let i = 0, length = btnViewSettings.length; i < length; i++) {
btnViewSettings[i].addEventListener('click', showViewSettingsMenu.bind(this)); btnViewSettings[i].addEventListener('click', showViewSettingsMenu.bind(this));
} }
@ -734,7 +732,7 @@ class ItemsView {
this.filterButtons = filterButtons; this.filterButtons = filterButtons;
const hasVisibleFilters = this.getVisibleFilters().length; const hasVisibleFilters = this.getVisibleFilters().length;
for (i = 0, length = filterButtons.length; i < length; i++) { for (let i = 0, length = filterButtons.length; i < length; i++) {
const btnFilter = filterButtons[i]; const btnFilter = filterButtons[i];
btnFilter.addEventListener('click', showFilterMenu.bind(this)); btnFilter.addEventListener('click', showFilterMenu.bind(this));