Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
edc32e9d
Commit
edc32e9d
authored
Oct 10, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks to new component animations
parent
564c138b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
cms/static/coffee/src/views/unit.coffee
+6
-4
cms/static/sass/_unit.scss
+3
-0
No files found.
cms/static/coffee/src/views/unit.coffee
View file @
edc32e9d
...
...
@@ -65,24 +65,26 @@ class CMS.Views.UnitEdit extends Backbone.View
showNewComponentForm
:
(
event
)
=>
event
.
preventDefault
()
@
$newComponentItem
.
addClass
(
'adding'
)
$
(
event
.
target
).
slideUp
(
150
)
$
(
event
.
target
).
fadeOut
(
150
)
@
$newComponentItem
.
css
(
'height'
,
@
$newComponentTypePicker
.
outerHeight
())
@
$newComponentTypePicker
.
slideDown
(
250
)
showComponentTemplates
:
(
event
)
=>
event
.
preventDefault
()
type
=
$
(
event
.
currentTarget
).
data
(
'type'
)
@
$newComponentTypePicker
.
slideUp
(
250
)
@
$
(
".new-component-
#{
type
}
"
).
slideDow
n
(
250
)
@
$newComponentTypePicker
.
fadeOut
(
250
)
@
$
(
".new-component-
#{
type
}
"
).
fadeI
n
(
250
)
closeNewComponent
:
(
event
)
=>
event
.
preventDefault
()
@
$newComponentTypePicker
.
slideUp
(
250
)
@
$newComponentTemplatePickers
.
slideUp
(
250
)
@
$newComponentButton
.
slideDow
n
(
250
)
@
$newComponentButton
.
fadeI
n
(
250
)
@
$newComponentItem
.
removeClass
(
'adding'
)
@
$newComponentItem
.
find
(
'.rendered-component'
).
remove
()
@
$newComponentItem
.
css
(
'height'
,
@
$newComponentButton
.
outerHeight
())
saveNewComponent
:
(
event
)
=>
event
.
preventDefault
()
...
...
cms/static/sass/_unit.scss
View file @
edc32e9d
...
...
@@ -209,7 +209,10 @@
.new-component
,
.new-component-templates
{
display
:
none
;
position
:
absolute
;
width
:
100%
;
padding
:
20px
;
@include
clearfix
;
.cancel-button
{
@include
blue-button
;
...
...
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