Fix warning message issue in step description [SCI-3479] (#1778)

* Fix warning message issue
This commit is contained in:
aignatov-bio 2019-05-20 11:19:53 +02:00 committed by GitHub
parent df59c54bd4
commit 20b626d791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,7 @@
});
}
// Init ajax success/error for edit form
// Init ajax success/error for edit form
function formEditAjax($form) {
$form
.on("ajax:beforeSend", function () {
@ -242,12 +242,12 @@
$new_step.find(".panel-collapse:first").addClass("collapse in");
//Rerender tables
$new_step.find("[data-role='step-hot-table']").each(function() {
$new_step.find("[data-role='step-hot-table']").each(function() {
renderTable($(this));
});
setupAssetsLoading();
})
.on("ajax:error", function(e, xhr, status, error) {
.on("ajax:error", function(e, xhr, status, error) {
$form.renderFormErrors('step', xhr.responseJSON, true, e);
formCallback($form);
@ -257,7 +257,7 @@
SmartAnnotation.preventPropagation('.atwho-user-popover');
//Rerender tables
$form.find("[data-role='step-hot-table']").each(function() {
$form.find("[data-role='step-hot-table']").each(function() {
renderTable($(this));
});
});
@ -596,6 +596,8 @@
toggleButtons(true);
SmartAnnotation.preventPropagation('.atwho-user-popover');
tinyMCE.editors.step_description_textarea.remove();
//Rerender tables
$new_step.find("div.step-result-hot-table").each(function() {
$(this).handsontable("render");