diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-08 23:33:08 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-08 23:36:09 -0500 |
commit | 89ca4f04f6d46fdc9eee2907669b63f220be3f20 (patch) | |
tree | 6fb6d70ecc93a2d2b4ac576070b93695db5ca0d1 /spec/javascripts/fixtures | |
parent | 6d9544410830166521c576eefc4e65a2c7b395d8 (diff) | |
download | gitlab-ce-89ca4f04f6d46fdc9eee2907669b63f220be3f20.tar.gz |
Refactor ZenModers-zenmode-cleanup
- 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.
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/zen_mode.html.haml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/javascripts/fixtures/zen_mode.html.haml b/spec/javascripts/fixtures/zen_mode.html.haml index e867e4de2b9..1701652c61e 100644 --- a/spec/javascripts/fixtures/zen_mode.html.haml +++ b/spec/javascripts/fixtures/zen_mode.html.haml @@ -1,9 +1,8 @@ .zennable - %input#zen-toggle-comment.zen-toggle-comment{ tabindex: '-1', type: 'checkbox' } .zen-backdrop - %textarea#note_note.js-gfm-input.markdown-area{placeholder: 'Leave a comment'} - %a.zen-enter-link{tabindex: '-1'} + %textarea#note_note.js-gfm-input.markdown-area + %a.js-zen-enter(tabindex="-1" href="#") %i.fa.fa-expand - Edit in fullscreen - %a.zen-leave-link + Edit in fullscreen + %a.js-zen-leave(tabindex="-1" href="#") %i.fa.fa-compress |