Commit 5ce797c3 authored by Stan Hu's avatar Stan Hu
Browse files

Fix Zen Mode not closing with ESC key

Closes #1025
parent a26d5372b3e6
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)
......@@ -12,7 +12,7 @@
$('body').on 'click', '.zen-enter-link', (e) =>
$(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) =>
......@@ -16,7 +16,7 @@
$('body').on 'click', '.zen-leave-link', (e) =>
$(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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment