From d2849c88fd704a9832c7bfe0af6bf97b7abe1d0d Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Wed, 3 Jul 2019 09:18:52 +0200 Subject: [PATCH] Remove draft after save step (#1878) --- app/assets/javascripts/protocols/steps.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/protocols/steps.js.erb b/app/assets/javascripts/protocols/steps.js.erb index bdff14201..37acd353e 100644 --- a/app/assets/javascripts/protocols/steps.js.erb +++ b/app/assets/javascripts/protocols/steps.js.erb @@ -603,6 +603,7 @@ toggleButtons(true); SmartAnnotation.preventPropagation('.atwho-user-popover'); + tinyMCE.editors.step_description_textarea.plugins.autosave.removeDraft(); tinyMCE.editors.step_description_textarea.remove(); //Rerender tables