Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
75a0c4a4
authored
Jan 28, 2013
by
Danyi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sliding animation fix
parent
538165d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
one/templates/base.html
+6
-2
No files found.
one/templates/base.html
View file @
75a0c4a4
...
@@ -11,17 +11,21 @@
...
@@ -11,17 +11,21 @@
<script
src=
"/static/jquery.min.js"
></script>
<script
src=
"/static/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
function
(){
$
(
'.wm .summary'
).
each
(
function
(){
this
.
originalHeight
=
parseInt
(
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
})
$
(
'.wm .summary'
).
click
(
function
(){
$
(
'.wm .summary'
).
click
(
function
(){
if
(
$
(
this
).
next
(
'.details'
).
is
(
':hidden'
)){
if
(
$
(
this
).
next
(
'.details'
).
is
(
':hidden'
)){
$
(
this
).
next
(
'.details'
)
$
(
this
).
next
(
'.details'
)
.
css
(
'height'
,
0
)
.
css
(
'height'
,
0
)
.
css
(
'padding'
,
'0px 5px'
)
.
css
(
'padding'
,
'0px 5px'
)
.
show
()
.
show
()
.
animate
({
height
:
160
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
.
animate
({
height
:
this
.
originalHeight
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
}
else
{
}
else
{
var
that
=
this
;
var
that
=
this
;
$
(
this
).
next
(
'.details'
)
$
(
this
).
next
(
'.details'
)
.
css
(
'height'
,
130
)
//2*15px paddingot le kell vonni, a jQuery szar
.
css
(
'height'
,
this
.
originalHeight
-
30
)
.
css
(
'padding'
,
'15px 5px'
)
.
css
(
'padding'
,
'15px 5px'
)
.
animate
({
height
:
0
,
paddingTop
:
0
,
paddingBottom
:
0
},
700
,
function
(){
.
animate
({
height
:
0
,
paddingTop
:
0
,
paddingBottom
:
0
},
700
,
function
(){
$
(
that
).
next
(
'.details'
).
hide
();
$
(
that
).
next
(
'.details'
).
hide
();
...
...
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