From 028876da603473b4cbb1c5850af3d2dfc5bc05d5 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Thu, 23 Mar 2017 14:08:37 +0100 Subject: [PATCH] fix javascript for autosave on beginning --- app/assets/javascripts/editor/editor.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index 0668cbc0..2c2b8011 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -681,6 +681,6 @@ configureEditors: function () { $(window).on("beforeunload", this.unloadAutoSave.bind(this)); // create autosave when the editor is opened the first time - this.autosave().bind(this); + this.autosave(); } }; \ No newline at end of file