Commit 26e38c32 authored by Markos Gogoulos's avatar Markos Gogoulos
Browse files

Merge branch 'ui-0.2' of https://code.grnet.gr/git/synnefo into ui-0.2

parents 91d2da9d 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 {
......
......@@ -696,7 +696,7 @@ function get_metadata(serverID) {
}
},
success: function(data, textStatus, jqXHR) {
update_metadata(data);
list_metadata(data);
}
});
return false;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment