mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-02-15 01:28:40 +00:00
phpcs fixes
This commit is contained in:
parent
dc46217655
commit
51e827c6d7
|
|
@ -36,8 +36,8 @@ jsOMS.Modules.Search = class {
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
bind (id) {
|
bind (id) {
|
||||||
const e = typeof id === 'undefined' ? document.getElementsByClassName('nav') : [document.getElementById(id)],
|
const e = typeof id === 'undefined' ? document.getElementsByClassName('nav') : [document.getElementById(id)];
|
||||||
length = e.length;
|
const length = e.length;
|
||||||
|
|
||||||
for (let i = 0; i < length; ++i) {
|
for (let i = 0; i < length; ++i) {
|
||||||
this.bindElement(e[i]);
|
this.bindElement(e[i]);
|
||||||
|
|
@ -60,14 +60,14 @@ jsOMS.Modules.Search = class {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const extend = e.querySelectorAll('li label'),
|
const extend = e.querySelectorAll('li label');
|
||||||
self = this;
|
const self = this;
|
||||||
|
|
||||||
this.navigation[e.id] = new Search(this.rawNavData[e.id]);
|
this.navigation[e.id] = new Search(this.rawNavData[e.id]);
|
||||||
|
|
||||||
// On load
|
// On load
|
||||||
const open = this.navigation[e.id].getOpen();
|
const open = this.navigation[e.id].getOpen();
|
||||||
let ele = null;
|
let ele = null;
|
||||||
|
|
||||||
for (let key in open) {
|
for (let key in open) {
|
||||||
if (open.hasOwnProperty(key) && (ele = document.getElementById(key)) !== null) {
|
if (open.hasOwnProperty(key) && (ele = document.getElementById(key)) !== null) {
|
||||||
|
|
@ -84,7 +84,7 @@ jsOMS.Modules.Search = class {
|
||||||
e.nextElementSibling.checked = width < 800;
|
e.nextElementSibling.checked = width < 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
e.scrollTop = this.navigation[e.id].getScrollPosition().y;
|
e.scrollTop = this.navigation[e.id].getScrollPosition().y;
|
||||||
e.scrollLeft = this.navigation[e.id].getScrollPosition().x;
|
e.scrollLeft = this.navigation[e.id].getScrollPosition().x;
|
||||||
|
|
||||||
// Bind minimize/maximize
|
// Bind minimize/maximize
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user