Revision dd604c16 ui/templates/machines.html

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