mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix steps description and table saving (#1984)
This commit is contained in:
parent
6fda5401f5
commit
e682a3e5d9
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue