Skip to content
Snippets Groups Projects
Commit b96abc7d authored by geoandri's avatar geoandri Committed by George Andrinopoulos
Browse files

Minor refactoring in shortcuts_wiki.js

parent b6b83f3c
No related branches found
No related tags found
No related merge requests found
/* 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;
Loading
Loading
@@ -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
Loading
Loading
@@ -121,7 +121,6 @@
%td.shortcut
.key e
%td Edit wiki page
%tr
.col-lg-4
%table.shortcut-mappings
%tbody
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment