debian-mirror-gitlab/app/assets/javascripts/shortcuts_wiki.js

17 lines
370 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
/* eslint-disable class-methods-use-this */
/* global Mousetrap */
/* global ShortcutsNavigation */
import findAndFollowLink from './shortcuts_dashboard_navigation';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
Mousetrap.bind('e', this.editWiki);
}
editWiki() {
findAndFollowLink('.js-wiki-edit');
}
}