BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
38f1d571
Commit
38f1d571
authored
Sep 04, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove style attribute from textarea during ZenMode activation
Closes internal
https://dev.gitlab.org/gitlab/gitlabhq/issues/2466
parent
50f76ae0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
zen_mode.js.coffee
app/assets/javascripts/zen_mode.js.coffee
+2
-0
zen_mode_spec.js.coffee
spec/javascripts/zen_mode_spec.js.coffee
+5
-0
No files found.
app/assets/javascripts/zen_mode.js.coffee
View file @
38f1d571
...
...
@@ -38,6 +38,8 @@ class @ZenMode
@
active_checkbox
=
$
(
checkbox
)
@
active_checkbox
.
prop
(
'checked'
,
true
)
@
active_zen_area
=
@
active_checkbox
.
parent
().
find
(
'textarea'
)
# Prevent a user-resized textarea from persisting to fullscreen
@
active_zen_area
.
removeAttr
(
'style'
)
@
active_zen_area
.
focus
()
exitZenMode
:
=>
...
...
spec/javascripts/zen_mode_spec.js.coffee
View file @
38f1d571
...
...
@@ -29,6 +29,11 @@ describe 'ZenMode', ->
enterZen
()
expect
(
Mousetrap
.
pause
).
toHaveBeenCalled
()
it
'removes textarea styling'
,
->
$
(
'textarea'
).
attr
(
'style'
,
'height: 400px'
)
enterZen
()
expect
(
'textarea'
).
not
.
toHaveAttr
(
'style'
)
describe
'in use'
,
->
beforeEach
->
enterZen
()
...
...
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