mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-11 14:27:04 +08:00
Fix for step description overwriting
[SCI-4067]
This commit is contained in:
parent
04c157d73b
commit
1d180f3688
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@
|
||||||
if ($('#steps .step').length > 0) {
|
if ($('#steps .step').length > 0) {
|
||||||
$("[data-action='new-step']:last").show();
|
$("[data-action='new-step']:last").show();
|
||||||
$(".expand-all-steps").show();
|
$(".expand-all-steps").show();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$("[data-action='new-step']").hide();
|
$("[data-action='new-step']").hide();
|
||||||
$("[data-action='edit-step']").hide();
|
$("[data-action='edit-step']").hide();
|
||||||
|
@ -584,7 +584,7 @@
|
||||||
|
|
||||||
animateSpinner(null, true);
|
animateSpinner(null, true);
|
||||||
DragNDropSteps.appendFilesToForm(ev).then(formData => {
|
DragNDropSteps.appendFilesToForm(ev).then(formData => {
|
||||||
formData.append('step[description]', TinyMCE.getContent());
|
formData.append('step[description]', $tinyMCEInput);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $form.attr('action'),
|
url: $form.attr('action'),
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Add table
Reference in a new issue