summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-30 13:32:26 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 15:22:43 -0600
commit3833a28c3aa7a7ae8c1a353e2c6d4338f50b5fb1 (patch)
tree22ca4df2f88e2ddbe99e74bb8c2a9e5ac3bdc2ae
parentd42e7f23b2cde8991ab8f617335abc19eec4e906 (diff)
downloadgitlab-ce-18546-update-wiki-page-design.tar.gz
rename event variable to just e18546-update-wiki-page-design
-rw-r--r--app/assets/javascripts/wikis.js.es68
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/wikis.js.es6 b/app/assets/javascripts/wikis.js.es6
index fa6d0e1f56c..ecff5fd5bf4 100644
--- a/app/assets/javascripts/wikis.js.es6
+++ b/app/assets/javascripts/wikis.js.es6
@@ -30,7 +30,7 @@
this.renderSidebar();
}
- handleNewWikiSubmit(event) {
+ handleNewWikiSubmit(e) {
if (!this.newWikiForm) return;
const slugInput = this.newWikiForm.querySelector('#new_wiki_path');
@@ -39,12 +39,12 @@
if (slug.length > 0) {
const wikisPath = slugInput.getAttribute('data-wikis-path');
window.location.href = `${wikisPath}/${slug}`;
- event.preventDefault();
+ e.preventDefault();
}
}
- handleToggleSidebar(event) {
- event.preventDefault();
+ handleToggleSidebar(e) {
+ e.preventDefault();
this.sidebarExpanded = !this.sidebarExpanded;
this.renderSidebar();
}