Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shortcuts_wiki.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a075062a4814c19fbdb8aacea3cf982250d307b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 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');
  }
}