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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/shortcuts.js.coffee')
-rw-r--r--app/assets/javascripts/shortcuts.js.coffee30
1 files changed, 0 insertions, 30 deletions
diff --git a/app/assets/javascripts/shortcuts.js.coffee b/app/assets/javascripts/shortcuts.js.coffee
deleted file mode 100644
index e9aeb1e9525..00000000000
--- a/app/assets/javascripts/shortcuts.js.coffee
+++ /dev/null
@@ -1,30 +0,0 @@
-class @Shortcuts
- constructor: ->
- @enabledHelp = []
- Mousetrap.reset()
- Mousetrap.bind('?', @selectiveHelp)
- Mousetrap.bind('s', Shortcuts.focusSearch)
-
- selectiveHelp: (e) =>
- Shortcuts.showHelp(e, @enabledHelp)
-
- @showHelp: (e, location) ->
- if $('#modal-shortcuts').length > 0
- $('#modal-shortcuts').modal('show')
- else
- $.ajax(
- url: '/help/shortcuts',
- dataType: 'script',
- success: (e) ->
- if location and location.length > 0
- for l in location
- $(l).show()
- else
- $('.hidden-shortcut').show()
- $('.js-more-help-button').remove()
- )
- e.preventDefault()
-
- @focusSearch: (e) ->
- $('#search').focus()
- e.preventDefault()