Revision 0943cc77 ui/templates/machines.html

b/ui/templates/machines.html
625 625
});
626 626

  
627 627
// intercept click on remove button in metadata edit dialog
628
$('#editor-1.meta-modal button.create').click( function(){
629
    // ajax call to delete selected metadata key-value pair
630
    // if successful remove it from the overlay
631
    // TODO
628
$('#editor-1.meta-modal button.remove').live('click', function() {    
629
    var serverID = $(this).parent().parent().parent().parent().children("h3").attr('id');
630
    var meta_key = $(this).parent().find("label").text();
631
    delete_server_metadata(serverID, meta_key);
632
    return false;
632 633
});
633 634

  
634 635
// intercept click on edit button in metadata edit dialog

Also available in: Unified diff