Fix issue with duplicate error messages in experiments modal [SCI-484]

This commit is contained in:
Oleksii Kriuchykhin 2016-09-26 09:55:25 +02:00
parent 1c1a7c231e
commit 8a3a9451e9

View file

@ -66,12 +66,12 @@
window.location.replace(data.path);
})
.on('ajax:error', function(e, error) {
form.clearFormErrors();
var msg = JSON.parse(error.responseText);
renderFormError(e,
form.find("#experiment_project_id"),
msg.message.toString());
})
.clearFormErrors();
});
}
}
// Reload after successfully updated experiment