Skip to content
Snippets Groups Projects
Commit 618726ff authored by tiagonbotelho's avatar tiagonbotelho
Browse files

fixes modal for showing shortcuts

parent 017ae313
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -22,17 +22,6 @@ class @Shortcuts
$modal.modal('toggle')
return
 
$.ajax(
url: gon.shortcuts_path,
dataType: 'script',
success: (e) ->
if location and location.length > 0
$(l).show() for l in location
else
$('.hidden-shortcut').show()
$('.js-more-help-button').remove()
)
focusFilter: (e) ->
@filterInput ?= $('input[type=search]', '.nav-controls')
@filterInput.focus()
Loading
Loading
Loading
Loading
@@ -39,3 +39,5 @@
%li= link_to 'Use shortcuts', '#', onclick: 'Shortcuts.toggleHelp()'
%li= link_to 'Get a support subscription', 'https://about.gitlab.com/pricing/'
%li= link_to 'Compare GitLab editions', 'https://about.gitlab.com/features/#compare'
= render "help/shortcuts"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment