Commit 07442bf8 authored by geoandri's avatar geoandri Committed by George Andrinopoulos

Add wikiEdit to constructor

parent b96abc7d
/* eslint-disable class-methods-use-this*/
/* global Mousetrap */
/* global ShortcutsNavigation */
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
Mousetrap.bind('e', this.editWiki);
this.$wikiEdit = $('.wiki-edit');
Mousetrap.bind('e', this.editWiki.bind(this));
}
editWiki() {
gl.utils.visitUrl($('.wiki-edit').attr('href'));
gl.utils.visitUrl(this.$wikiEdit.attr('href'));
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment