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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
fd3924df
authored
Jan 29, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor hiding/showing vm details to class
parent
8e9a81df
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
one/static/style.css
+3
-0
one/templates/base.html
+3
-2
one/templates/box-vmlist.html
+1
-1
No files found.
one/static/style.css
View file @
fd3924df
...
...
@@ -89,6 +89,9 @@ a:link,a:visited{
padding
:
15px
5px
;
display
:
none
;
}
.wm.opened
.details
{
display
:
block
;
}
.wm
.details
h3
{
font-weight
:
normal
;
}
...
...
one/templates/base.html
View file @
fd3924df
...
...
@@ -20,8 +20,9 @@ $(function(){
$
(
this
).
next
(
'.details'
)
.
css
(
'height'
,
0
)
.
css
(
'padding'
,
'0px 5px'
)
.
show
()
.
animate
({
height
:
this
.
originalHeight
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
}
else
{
var
that
=
this
;
$
(
this
).
next
(
'.details'
)
...
...
@@ -29,7 +30,7 @@ $(function(){
.
css
(
'height'
,
this
.
originalHeight
-
30
)
.
css
(
'padding'
,
'15px 5px'
)
.
animate
({
height
:
0
,
paddingTop
:
0
,
paddingBottom
:
0
},
700
,
function
(){
$
(
that
).
next
(
'.details'
).
hide
(
);
$
(
that
).
parent
(
'.wm'
).
removeClass
(
'opened'
);
});
}
}
...
...
one/templates/box-vmlist.html
View file @
fd3924df
...
...
@@ -29,7 +29,7 @@
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
style=
"display: none"
>
<div
class=
"details"
>
<h3>
Részletek
</h3>
<ul>
<li
class=
"name"
>
Gép neve:
<span
class=
"value"
>
{{i.name}}
</span></li>
...
...
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