Page MenuHomeGRNET

select_files.js.erb
No OneTemporary

File Metadata

Created
Mon, May 19, 12:41 AM

select_files.js.erb

$('#basic-form input').attr('disabled', true);
$('#basic-form select').attr('disabled', true);
$('.loader').hide();
$('#file-tree').jstree({
'core': {
'data' : {
"url" : "<%= escape_javascript(tree_client_path(client_id: @client.id)) %>",
"data" : function(node) {
return { "id" : node.id };
},
"dataType" : "json"
}
},
'checkbox' : {
'three_state': false
},
"types" : {
"file" : {
"icon" : "glyphicon glyphicon-file"
}
},
"plugins" : ["types", "checkbox"]
});
$('#restore-details').show();
$('#file-submitter').
append('<input type="hidden" name="location" value="<%= escape_javascript(@location) %>"/>');
$('#restore_data_point').html("<%= @restore_point || Time.now.strftime('%Y-%m-%d %H:%M:%S') %>");
$('#restore_data_location').html("<%= @location %>");
$('#restore_data_client').html("<%= @restore_client || @client.name %>");

Event Timeline