Revision dd604c16

b/ui/static/main.css
1149 1149
    height: 248px;
1150 1150
    width: 345px;
1151 1151
    margin-left: 15px;
1152
    overflow: auto;
1153
}
1154

  
1155
.meta-modal div.content li {
1156
    margin-bottom: 20px;
1152 1157
}
1153 1158

  
1154 1159
.meta-modal p {
b/ui/static/synnefo.js
696 696
			}
697 697
        },
698 698
        success: function(data, textStatus, jqXHR) {
699
            update_metadata(data);
699
            list_metadata(data);
700 700
        }
701 701
    });
702 702
    return false;
b/ui/templates/machines.html
656 656
});
657 657

  
658 658
// update metadata in edit dialog
659
function update_metadata(data) {
660

  
659
function list_metadata(data) {    
660
    // empty the list if it already exists
661
    $("#editor-1 div.content ul.meta-list").empty();
662
    // get the values to show
661 663
    meta = data.metadata.values;
662

  
664
    // show values
663 665
    for (key in meta) {
664 666
        pair = $("ul.meta-template li").clone();
665 667
        pair.find("label").text(key);

Also available in: Unified diff