mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Remove automatic saving on task and protocol description
This commit is contained in:
parent
d761a5cecb
commit
86255b9037
1 changed files with 0 additions and 13 deletions
13
app/assets/javascripts/sitewide/tiny_mce.js
vendored
13
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue