mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-09 16:06:21 +02:00
eslint fixes.
This commit is contained in:
@ -1272,7 +1272,7 @@ runBtn, searchInput
|
|||||||
scope.onSearchInputChange = function (e) {
|
scope.onSearchInputChange = function (e) {
|
||||||
const text = e.target.value;
|
const text = e.target.value;
|
||||||
let el;
|
let el;
|
||||||
for (let [itemId, item] of Object.entries(savedItems)) {
|
for (const [itemId, item] of Object.entries(savedItems)) {
|
||||||
el = $(`#js-saved-items-pane [data-item-id=${itemId}]`);
|
el = $(`#js-saved-items-pane [data-item-id=${itemId}]`);
|
||||||
if (item.title.toLowerCase().indexOf(text) === -1) {
|
if (item.title.toLowerCase().indexOf(text) === -1) {
|
||||||
el.classList.add('hide');
|
el.classList.add('hide');
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
window.DEBUG = document.cookie.indexOf('wmdebug') > -1;
|
window.DEBUG = document.cookie.indexOf('wmdebug') > -1;
|
||||||
|
|
||||||
window.$ = document.querySelector.bind(document);
|
window.$ = document.querySelector.bind(document);
|
||||||
window.$all = (selector) => [...document.querySelectorAll(selector)] ;
|
window.$all = (selector) => [...document.querySelectorAll(selector)];
|
||||||
var alphaNum = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
var alphaNum = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,6 +18,7 @@
|
|||||||
var index = siblings.indexOf(this);
|
var index = siblings.indexOf(this);
|
||||||
return siblings[index + 1];
|
return siblings[index + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @param Selector that should match for next siblings
|
* @param Selector that should match for next siblings
|
||||||
* @return element Next element that mathes `selector`
|
* @return element Next element that mathes `selector`
|
||||||
|
Reference in New Issue
Block a user