rename event variable to just e
This commit is contained in:
parent
d42e7f23b2
commit
3833a28c3a
|
@ -30,7 +30,7 @@
|
||||||
this.renderSidebar();
|
this.renderSidebar();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleNewWikiSubmit(event) {
|
handleNewWikiSubmit(e) {
|
||||||
if (!this.newWikiForm) return;
|
if (!this.newWikiForm) return;
|
||||||
|
|
||||||
const slugInput = this.newWikiForm.querySelector('#new_wiki_path');
|
const slugInput = this.newWikiForm.querySelector('#new_wiki_path');
|
||||||
|
@ -39,12 +39,12 @@
|
||||||
if (slug.length > 0) {
|
if (slug.length > 0) {
|
||||||
const wikisPath = slugInput.getAttribute('data-wikis-path');
|
const wikisPath = slugInput.getAttribute('data-wikis-path');
|
||||||
window.location.href = `${wikisPath}/${slug}`;
|
window.location.href = `${wikisPath}/${slug}`;
|
||||||
event.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleToggleSidebar(event) {
|
handleToggleSidebar(e) {
|
||||||
event.preventDefault();
|
e.preventDefault();
|
||||||
this.sidebarExpanded = !this.sidebarExpanded;
|
this.sidebarExpanded = !this.sidebarExpanded;
|
||||||
this.renderSidebar();
|
this.renderSidebar();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue