Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toggleMenus(evt){
this.toggleClass(Omi.get('sidebar').node,'show');
evt.stopPropagation();
}
toggleMenus(evt){
this.toggleClass(Omi.get('sidebar').node,'show');
evt.stopPropagation();
}
goto(name, index) {
Omi.get('content').data.name = name;
Omi.get('content').update();
this.data.currentIndex = index;
this.parent.children.forEach((child,index) => {
child.data.active = false;
if (child.id === this.id) {
Omi.get('pager').activeIndex = index;
child.data.active = true;
}
child.update();
});
Omi.get('pager').currentIndex = index;
Omi.get('pager').update();
document.body.scrollTop = 0;
}
goto(name, index) {
Omi.get('content').data.name = name;
Omi.get('content').update();
this.data.currentIndex = index;
this.parent.children.forEach((child,index) => {
child.data.active = false;
if (child.id === this.id) {
Omi.get('pager').activeIndex = index;
child.data.active = true;
}
child.update();
});
Omi.get('pager').currentIndex = index;
Omi.get('pager').update();
document.body.scrollTop = 0;
}
goto(name , dir){
let sidebar = Omi.get('sidebar');
if(dir ==='next'){
sidebar.children[this.activeIndex].goto(name,++this.currentIndex);
}else{
sidebar.children[this.activeIndex].goto(name,--this.currentIndex);
}
this.update();
}
this.parent.children.forEach((child,index) => {
child.data.active = false;
if (child.id === this.id) {
Omi.get('pager').activeIndex = index;
child.data.active = true;
}
child.update();
});
Omi.get('pager').currentIndex = index;
setTimeout(()=>{
this.removeClass(Omi.get('sidebar').node,'show');
},300);
},false);
goto(name, index) {
Omi.get('content').data.name = name;
Omi.get('content').update();
this.data.currentIndex = index;
this.parent.children.forEach((child,index) => {
child.data.active = false;
if (child.id === this.id) {
Omi.get('pager').activeIndex = index;
child.data.active = true;
}
child.update();
});
Omi.get('pager').currentIndex = index;
Omi.get('pager').update();
document.body.scrollTop = 0;
}
goto(name, index) {
Omi.get('content').data.name = name;
Omi.get('content').update();
this.data.currentIndex = index;
this.parent.children.forEach((child,index) => {
child.data.active = false;
if (child.id === this.id) {
Omi.get('pager').activeIndex = index;
child.data.active = true;
}
child.update();
});
Omi.get('pager').currentIndex = index;
Omi.get('pager').update();
document.body.scrollTop = 0;
}