Remove automatic saving on task and protocol description

This commit is contained in:
Mojca Lorber 2019-05-10 15:30:29 +02:00
parent d761a5cecb
commit 86255b9037

View file

@ -158,19 +158,6 @@ var TinyMCE = (function() {
}
}
// Saving at clicking anywhere outside of the editor ("inline style")
editor.on('blur', function(event) {
if (this.id === 'my_module_description_textarea'
|| this.id === 'protocol_description_textarea') {
event.preventDefault();
editorForm.clearFormErrors();
editor.setProgressState(1);
editor.save();
editorForm.submit();
updateScrollPosition();
}
});
// Init Save button
editorForm
.find('.tinymce-save-button')