Minor refactoring in shortcuts_wiki.js
This commit is contained in:
parent
b6b83f3c50
commit
b96abc7d26
2 changed files with 4 additions and 6 deletions
|
@ -1,15 +1,14 @@
|
||||||
|
/* eslint-disable class-methods-use-this*/
|
||||||
/* global Mousetrap */
|
/* global Mousetrap */
|
||||||
/* global ShortcutsNavigation */
|
/* global ShortcutsNavigation */
|
||||||
|
|
||||||
class ShortcutsWiki extends ShortcutsNavigation {
|
export default class ShortcutsWiki extends ShortcutsNavigation {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
Mousetrap.bind('e', this.editWiki);
|
Mousetrap.bind('e', this.editWiki);
|
||||||
}
|
}
|
||||||
|
|
||||||
editWiki() {
|
editWiki() {
|
||||||
this.gl.utils.visitUrl($('.wiki-edit').attr('href'));
|
gl.utils.visitUrl($('.wiki-edit').attr('href'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = ShortcutsWiki;
|
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
%td.shortcut
|
%td.shortcut
|
||||||
.key y
|
.key y
|
||||||
%td Go to file permalink
|
%td Go to file permalink
|
||||||
%tbody.hidden-shortcut.wiki{ style: 'display:none' }
|
%tbody.hidden-shortcut.wiki
|
||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
%th Wiki pages
|
%th Wiki pages
|
||||||
|
@ -121,7 +121,6 @@
|
||||||
%td.shortcut
|
%td.shortcut
|
||||||
.key e
|
.key e
|
||||||
%td Edit wiki page
|
%td Edit wiki page
|
||||||
%tr
|
|
||||||
.col-lg-4
|
.col-lg-4
|
||||||
%table.shortcut-mappings
|
%table.shortcut-mappings
|
||||||
%tbody
|
%tbody
|
||||||
|
|
Loading…
Reference in a new issue