diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-13 17:23:55 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-13 17:23:55 +0300 |
commit | e578530fa13269526f4243d9109a8fe948a99ae2 (patch) | |
tree | d763c0a8955ed47b2ead514f6edc11ad61352334 /app/assets/javascripts/shortcuts.js | |
parent | 48b976e0973066ebf2f2ffd01b1bb4a7e9d4d040 (diff) |
Move find file URL out of global variable
Part of #34903
Diffstat (limited to 'app/assets/javascripts/shortcuts.js')
-rw-r--r-- | app/assets/javascripts/shortcuts.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/shortcuts.js b/app/assets/javascripts/shortcuts.js index 49d980212d6..e3daa8cf949 100644 --- a/app/assets/javascripts/shortcuts.js +++ b/app/assets/javascripts/shortcuts.js @@ -1,6 +1,5 @@ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, quotes, prefer-arrow-callback, consistent-return, object-shorthand, no-unused-vars, one-var, one-var-declaration-per-line, no-else-return, comma-dangle, max-len */ /* global Mousetrap */ -/* global findFileURL */ import Cookies from 'js-cookie'; import findAndFollowLink from './shortcuts_dashboard_navigation'; @@ -20,6 +19,7 @@ import findAndFollowLink from './shortcuts_dashboard_navigation'; const $globalDropdownMenu = $('.global-dropdown-menu'); const $globalDropdownToggle = $('.global-dropdown-toggle'); + const findFileURL = document.body.dataset.findFile; $('.global-dropdown').on('hide.bs.dropdown', () => { $globalDropdownMenu.removeClass('shortcuts'); |