Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
4c407894
Commit
4c407894
authored
Apr 16, 2011
by
Christodoulos Psaltis
Browse files
Empty metadata list before cloning it, Refs #375
parent
2604e505
Changes
3
Hide whitespace changes
Inline
Side-by-side
ui/static/main.css
View file @
4c407894
...
...
@@ -1149,6 +1149,11 @@ input.machine {
height
:
248px
;
width
:
345px
;
margin-left
:
15px
;
overflow
:
auto
;
}
.meta-modal
div
.content
li
{
margin-bottom
:
20px
;
}
.meta-modal
p
{
...
...
ui/static/synnefo.js
View file @
4c407894
...
...
@@ -696,7 +696,7 @@ function get_metadata(serverID) {
}
},
success
:
function
(
data
,
textStatus
,
jqXHR
)
{
update
_metadata
(
data
);
list
_metadata
(
data
);
}
});
return
false
;
...
...
ui/templates/machines.html
View file @
4c407894
...
...
@@ -656,10 +656,12 @@ $('#editor-2.meta-modal button.save').click( function(){
});
// update metadata in edit dialog
function
update_metadata
(
data
)
{
function
list_metadata
(
data
)
{
// empty the list if it already exists
$
(
"
#editor-1 div.content ul.meta-list
"
).
empty
();
// get the values to show
meta
=
data
.
metadata
.
values
;
// show values
for
(
key
in
meta
)
{
pair
=
$
(
"
ul.meta-template li
"
).
clone
();
pair
.
find
(
"
label
"
).
text
(
key
);
...
...
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