Fix steps description and table saving (#1984)

This commit is contained in:
aignatov-bio 2019-08-21 11:05:49 +02:00 committed by GitHub
parent 6fda5401f5
commit e682a3e5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,7 +568,7 @@
$form.find("[data-role='editable-table']").each(function() {
let hot = $(this).find(".hot").handsontable('getInstance');
let contents = $(this).find('.hot-contents');
let tableData = JSON.stringify({tableData: hot.getData()});
let tableData = JSON.stringify({data: hot.getData()});
contents.attr("value", tableData);
});
@ -579,7 +579,7 @@
animateSpinner(null, true);
DragNDropSteps.appendFilesToForm(ev).then(formData => {
// formData.append('step[description]', TinyMCE.getContent());
formData.append('step[description]', TinyMCE.getContent());
$.ajax({
url: $form.attr('action'),
method: 'POST',