Revision 0c578a28 ui/templates/machines.html

b/ui/templates/machines.html
648 648
});
649 649

  
650 650
// intercept click on save button in metadata add dialog
651
$('#editor-2.meta-modal button.save').click( function(){
652
    // ajax call to save metadata
653
    //TODO
654
    // go from add meatata to edit metadata
655
    $('a#meta-editor-2').data('overlay').close();
656
    editMetadata();
651
$('#editor-2.meta-modal button.save').live('click', function() {    
652
    var serverID = $(this).parent().children("h3").attr('id');
653
    var meta_key = $(this).parent().find(".content input.key").attr('value');
654
    var meta_value = $(this).parent().find(".content input.value").attr('value');
655
    add_server_metadata(serverID, meta_key, meta_value);
656
    return false;
657 657
});
658 658

  
659 659
// update metadata in edit dialog

Also available in: Unified diff