Commit b3664434 authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug when run several workflows.

parent 106b206f
......@@ -189,7 +189,7 @@ jQuery.validator.addMethod("mparam", function(value, element, params) {
$.tmpl(elt.options.progressTemplate, {upload_file_status: upload_file_status}).appendTo($("#progress"));
}
WFForm.prototype.run = function() {
WFForm.prototype.run = function() {
// first check if the form is valid
if ($("#workflow_form").valid()) {
// change boolean type values if checked
......@@ -241,6 +241,7 @@ jQuery.validator.addMethod("mparam", function(value, element, params) {
});
$this.$element.on("uploaded", function() {
$this.$element.off("uploaded");
$.ajax({
url: $this.options.serverURL + '/run_workflow?' + params + 'callback=?',
dataType: "json",
......
Supports Markdown
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