From c13c169657b5fe63973ada26d2725528f582132a Mon Sep 17 00:00:00 2001 From: Thomas Hille Date: Wed, 22 Mar 2017 15:07:13 +0100 Subject: [PATCH] creates an autosave submission on opening of the editor. otherwise we lose track of the time between opening the exercise and the first submission --- app/assets/javascripts/editor/editor.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index ddbe2e54..0668cbc0 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -680,5 +680,7 @@ configureEditors: function () { this.showFirstFile(); $(window).on("beforeunload", this.unloadAutoSave.bind(this)); + // create autosave when the editor is opened the first time + this.autosave().bind(this); } }; \ No newline at end of file