Commit graph

12 commits

Author SHA1 Message Date
Robert Speicher
89ca4f04f6 Refactor ZenMode
- No longer depends on the "hidden checkbox".
- No longer depends on manually storing/restoring the scroll position.
  Instead, we take advantage of jquery.scrollTo.
- Event-based.
- Simplifies the state-based styling.
2016-01-08 23:36:09 -05:00
Robert Speicher
38f1d571fe Remove style attribute from textarea during ZenMode activation
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2466
2015-09-04 18:01:36 -04:00
Robert Speicher
f76a3f3db7 Add ZenMode javascript specs 2015-06-02 20:32:07 -04:00
Robert Schilling
5c2acc51e2 Merge branch 'fix-escape-key-in-zen-mode' into 'master'
Fix Zen Mode not closing with ESC key

### What does this MR do?

This MR fixes the ESC key not leaving Zen Mode (fullscreen).

### Why was this MR needed?

This has been broken since GitLab v7.8. The `change` event for `zen-toggle-comment` was never fired. See:

http://stackoverflow.com/questions/19505011/checkbox-checked-with-prop-does-not-fire-events-attached-to-change?answertab=votes#tab-top

### What are the relevant issue numbers?

* Closes #1025
* Closes https://github.com/gitlabhq/gitlabhq/issues/9018

See merge request !710
2015-05-26 17:26:28 +00:00
Stan Hu
ae552ec315 Fix Markdown preview not working in Edit Milestone page
Closes #1687
Closes https://github.com/gitlabhq/gitlabhq/issues/9325
2015-05-25 21:03:55 -07:00
Stan Hu
710627fbd8 Fix Zen Mode not closing with ESC key
Closes #1025
2015-05-25 20:27:20 -07:00
Dmitriy Zaporozhets
cad685e70b Refactor zen mode. Make it works in diffs 2015-01-15 00:15:12 -08:00
Robert Schilling
63377c9ba5 Disable dropzone in ZEN mode 2014-10-01 16:40:30 +02:00
Robert Schilling
28ba985ef9 Save last scrollposition and scroll back when leaving ZEN mode 2014-09-21 21:06:38 +02:00
Robert Schilling
d5badd7ef6 Prevent default action when closing zen mode 2014-09-20 18:15:36 +02:00
Ciro Santilli
04ef3ddc6c Improve zen mode internals. 2014-09-19 17:32:23 +02:00
Robert Schilling
0d5958c729 Close Zen mode by ESC, foward/backward 2014-09-11 19:24:51 +02:00