Commit 25fe6d23 authored by Jerome Mariette's avatar Jerome Mariette

No commit message

No commit message
parent c69de49d
......@@ -141,11 +141,11 @@
workflowClass: workflow["class"],
displayRunButton: false,
displayResetButton: false,
callback: function(workflow_id) {
callback: function(running_wf) {
$('#setAndRunModal').modal('hide');
$('#statusModalLabel').html(workflow_id);
$('#statusModalLabel').html(running_wf["name"] + " <small>" + running_wf["id"] + "</small>");
$('#statusModalBody').wfstatus({
workflowID: workflow_id
workflowID: running_wf.id
});
$('#statusModal').modal();
$("#refresh_workflow").click(function(){
......
......@@ -132,7 +132,7 @@ class JFlowServer (object):
def run_workflow(self, **kwargs):
args = self.extend_parameters(kwargs["workflow_class"], kwargs)
workflow = self.wfmanager.run_workflow(kwargs["workflow_class"], args)
return {"workflow_id": workflow.id}
return self.jsonify_workflow_status(workflow)
@cherrypy.expose
@jsonify
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment