Fix the "Show all" link for the keyboard shortcut modal
This commit is contained in:
parent
a97a2d2720
commit
e7314e4c27
3 changed files with 8 additions and 12 deletions
|
@ -49,7 +49,7 @@ class Dispatcher
|
|||
new DropzoneInput($('.release-form'))
|
||||
when 'projects:merge_requests:show'
|
||||
new Diff()
|
||||
shortcut_handler = new ShortcutsIssuable()
|
||||
shortcut_handler = new ShortcutsIssuable(true)
|
||||
new ZenMode()
|
||||
when "projects:merge_requests:diffs"
|
||||
new Diff()
|
||||
|
|
|
@ -7,7 +7,7 @@ class @Shortcuts
|
|||
|
||||
selectiveHelp: (e) =>
|
||||
Shortcuts.showHelp(e, @enabledHelp)
|
||||
|
||||
|
||||
@showHelp: (e, location) ->
|
||||
if $('#modal-shortcuts').length > 0
|
||||
$('#modal-shortcuts').modal('show')
|
||||
|
@ -17,8 +17,7 @@ class @Shortcuts
|
|||
dataType: 'script',
|
||||
success: (e) ->
|
||||
if location and location.length > 0
|
||||
for l in location
|
||||
$(l).show()
|
||||
$(l).show() for l in location
|
||||
else
|
||||
$('.hidden-shortcut').show()
|
||||
$('.js-more-help-button').remove()
|
||||
|
@ -28,3 +27,8 @@ class @Shortcuts
|
|||
@focusSearch: (e) ->
|
||||
$('#search').focus()
|
||||
e.preventDefault()
|
||||
|
||||
$(document).on 'click.more_help', '.js-more-help-button', (e) ->
|
||||
$(@).remove()
|
||||
$('.hidden-shortcut').show()
|
||||
e.preventDefault()
|
||||
|
|
|
@ -219,11 +219,3 @@
|
|||
%td.shortcut
|
||||
.key r
|
||||
%td Reply (quoting selected text)
|
||||
|
||||
|
||||
:javascript
|
||||
$('.js-more-help-button').click(function (e) {
|
||||
$(this).remove()l
|
||||
$('.hidden-shortcut').show();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue