Fix for step description overwriting

[SCI-4067]
This commit is contained in:
Urban Rotnik 2019-11-11 08:17:10 +01:00
parent 04c157d73b
commit 1d180f3688

View file

@ -270,7 +270,7 @@
if ($('#steps .step').length > 0) {
$("[data-action='new-step']:last").show();
$(".expand-all-steps").show();
}
}
} else {
$("[data-action='new-step']").hide();
$("[data-action='edit-step']").hide();
@ -584,7 +584,7 @@
animateSpinner(null, true);
DragNDropSteps.appendFilesToForm(ev).then(formData => {
formData.append('step[description]', TinyMCE.getContent());
formData.append('step[description]', $tinyMCEInput);
$.ajax({
url: $form.attr('action'),
method: 'POST',