Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
5ce797c3dd19
Commit
5ce797c3
authored
May 25, 2015
by
Stan Hu
Browse files
Fix Zen Mode not closing with ESC key
Closes #1025
parent
a26d5372b3e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
5ce797c3
Please view this file on the master branch, on stable branches it's out of date.
v 7.12.0 (unreleased)
- Fix Zen Mode not closing with ESC key (Stan Hu)
- Add web hook support for note events (Stan Hu)
- Disable "New Issue" and "New Merge Request" buttons when features are disabled in project settings (Stan Hu)
- Allow to configure location of the `.gitlab_shell_secret` file. (Jakub Jirutka)
...
...
app/assets/javascripts/zen_mode.js.coffee
View file @
5ce797c3
...
...
@@ -12,7 +12,7 @@
$
(
'body'
).
on
'click'
,
'.zen-enter-link'
,
(
e
)
=>
e
.
preventDefault
()
$
(
e
.
currentTarget
).
closest
(
'.zennable'
).
find
(
'.zen-toggle-comment'
).
prop
(
'checked'
,
true
)
$
(
e
.
currentTarget
).
closest
(
'.zennable'
).
find
(
'.zen-toggle-comment'
).
prop
(
'checked'
,
true
)
.
change
()
$
(
'body'
).
on
'click'
,
'.zen-leave-link'
,
(
e
)
=>
e
.
preventDefault
()
...
...
@@ -16,7 +16,7 @@
$
(
'body'
).
on
'click'
,
'.zen-leave-link'
,
(
e
)
=>
e
.
preventDefault
()
$
(
e
.
currentTarget
).
closest
(
'.zennable'
).
find
(
'.zen-toggle-comment'
).
prop
(
'checked'
,
false
)
$
(
e
.
currentTarget
).
closest
(
'.zennable'
).
find
(
'.zen-toggle-comment'
).
prop
(
'checked'
,
false
)
.
change
()
$
(
'body'
).
on
'change'
,
'.zen-toggle-comment'
,
(
e
)
=>
checkbox
=
e
.
currentTarget
...
...
Write
Preview
Supports
Markdown
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