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

Refactor shortcuts_wiki.js

parent 3c2596f7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,7 +35,6 @@ import './shortcuts_navigation';
import './shortcuts_find_file';
import './shortcuts_issuable';
import './shortcuts_network';
import './shortcuts_wiki';
 
// behaviors
import './behaviors/';
Loading
Loading
/* eslint-disable class-methods-use-this */
/* global Mousetrap */
/* global ShortcutsNavigation */
 
import findAndFollowLink from './shortcuts_dashboard_navigation';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
this.$wikiEdit = $('.wiki-edit');
Mousetrap.bind('e', this.editWiki.bind(this));
Mousetrap.bind('e', this.editWiki);
}
 
editWiki() {
gl.utils.visitUrl(this.$wikiEdit.attr('href'));
findAndFollowLink('.wiki-edit');
}
}
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