Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
8cdee2ba
Commit
8cdee2ba
authored
8 years ago
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exposed 'onToggleHelp() to window object so showHelp() can be a global function'
Removed from window and used static method
parent
84113d7e
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/shortcuts.js.coffee
app/assets/javascripts/shortcuts.js.coffee
+3
-3
app/views/help/index.html.haml
app/views/help/index.html.haml
+1
-1
No files found.
app/assets/javascripts/shortcuts.js.coffee
View file @
8cdee2ba
...
...
@@ -9,12 +9,12 @@ class @Shortcuts
onToggleHelp
:
(
e
)
=>
e
.
preventDefault
()
@
toggleHelp
(
@
enabledHelp
)
Shortcuts
.
toggleHelp
(
@
enabledHelp
)
toggleMarkdownPreview
:
(
e
)
=
>
toggleMarkdownPreview
:
(
e
)
-
>
$
(
document
).
triggerHandler
(
'markdown-preview:toggle'
,
[
e
])
toggleHelp
:
(
location
)
->
@
toggleHelp
:
(
location
)
->
$modal
=
$
(
'#modal-shortcuts'
)
if
$modal
.
length
...
...
This diff is collapsed.
Click to expand it.
app/views/help/index.html.haml
View file @
8cdee2ba
...
...
@@ -36,6 +36,6 @@
%ul
.well-list
%li
=
link_to
'See our website for getting help'
,
promo_url
+
'/getting-help/'
%li
=
link_to
'Use the search bar on the top of this page'
,
'#'
,
onclick:
'Shortcuts.focusSearch(event)'
%li
=
link_to
'Use shortcuts'
,
'#'
,
onclick:
'Shortcuts.
showHelp(event
)'
%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'
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment