summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeoandri <geoandri@gmail.com>2017-03-30 14:52:36 +0300
committerGeorge Andrinopoulos <geoandri@gmail.com>2017-04-11 20:30:28 +0300
commitb96abc7d26b5d3b888881644b4fe1595bb39e0a1 (patch)
treee6699d115293cca064ea1449379876846f08d9c4
parentb6b83f3c50384c956950dedb6f55739c1605579e (diff)
downloadgitlab-ce-b96abc7d26b5d3b888881644b4fe1595bb39e0a1.tar.gz
Minor refactoring in shortcuts_wiki.js
-rw-r--r--app/assets/javascripts/shortcuts_wiki.js7
-rw-r--r--app/views/help/_shortcuts.html.haml3
2 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/shortcuts_wiki.js b/app/assets/javascripts/shortcuts_wiki.js
index 00d0d8f3a62..bf4479f29c8 100644
--- a/app/assets/javascripts/shortcuts_wiki.js
+++ b/app/assets/javascripts/shortcuts_wiki.js
@@ -1,15 +1,14 @@
+/* eslint-disable class-methods-use-this*/
/* global Mousetrap */
/* global ShortcutsNavigation */
-class ShortcutsWiki extends ShortcutsNavigation {
+export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
Mousetrap.bind('e', this.editWiki);
}
editWiki() {
- this.gl.utils.visitUrl($('.wiki-edit').attr('href'));
+ gl.utils.visitUrl($('.wiki-edit').attr('href'));
}
}
-
-module.exports = ShortcutsWiki;
diff --git a/app/views/help/_shortcuts.html.haml b/app/views/help/_shortcuts.html.haml
index c6b4ba20b63..1aee47b1a71 100644
--- a/app/views/help/_shortcuts.html.haml
+++ b/app/views/help/_shortcuts.html.haml
@@ -113,7 +113,7 @@
%td.shortcut
.key y
%td Go to file permalink
- %tbody.hidden-shortcut.wiki{ style: 'display:none' }
+ %tbody.hidden-shortcut.wiki
%tr
%th
%th Wiki pages
@@ -121,7 +121,6 @@
%td.shortcut
.key e
%td Edit wiki page
- %tr
.col-lg-4
%table.shortcut-mappings
%tbody