gitlab-org--gitlab-foss/app
Fatih Acet 48843c0d85 Merge branch '19157-use-shortcuts-is-not-working-on-gitlab-com-help' into 'master'
Fixed 'use shortcuts' button on docs

## What does this MR do?

Exposes 'onToggleHelp() to window object through `showHelp()` so a help panel can be toggled globally using `showHelp()`.

## Are there points in the code the reviewer needs to double check?

Is this the best implementation? I actually think this is tidier than doing something like `onclick="new Shortcuts().onToggleHelp"` or `$.trigger 'keydown', char: '?'` but let me know.

## Why was this MR needed?

Docs UX

## What are the relevant issue numbers?

Closes #19157.

## Screenshots (if relevant)

## Does this MR meet the acceptance criteria?

- [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
Closes #19157

See merge request !4979
2016-06-30 00:09:05 +00:00
..
assets Merge branch '19157-use-shortcuts-is-not-working-on-gitlab-com-help' into 'master' 2016-06-30 00:09:05 +00:00
controllers Merge branch 'rubocop/enable-space-after-cops' into 'master' 2016-06-29 19:50:08 +00:00
finders PipelinesFinder use git cached data 2016-06-29 07:10:58 +02:00
helpers Merge branch 'cache-max-user-access-name' into 'master' 2016-06-29 21:34:46 +00:00
mailers Fallback to group's owners/masters when a project has none 2016-06-20 12:10:37 +02:00
models Merge branch 'rubocop/enable-space-after-cops' into 'master' 2016-06-29 19:50:08 +00:00
services Correctly returns todo ID after creating todo 2016-06-27 17:00:27 +01:00
uploaders Enable Style/SpaceAfterComma Rubocop cop 2016-06-29 15:23:44 +02:00
validators
views Merge branch '19157-use-shortcuts-is-not-working-on-gitlab-com-help' into 'master' 2016-06-30 00:09:05 +00:00
workers Merge branch 'repo-check-require-push-events' into 'master' 2016-06-17 19:14:43 +00:00