From 7f6c433fe840a62f19c34a3fdd818fcdc3496212 Mon Sep 17 00:00:00 2001 From: Thomas Hille Date: Fri, 24 Mar 2017 12:17:18 +0100 Subject: [PATCH] fixed time for interventions --- app/assets/javascripts/editor/editor.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index 867f86ba..627de632 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -613,7 +613,7 @@ configureEditors: function () { type: 'POST', url: $('#editor').data('intervention-save-url') }); - }, 0); + }, timeUntilIntervention); } else if ($('#editor').data('rfc-interventions')) { setTimeout(function () { var button = $('#requestComments'); @@ -630,7 +630,7 @@ configureEditors: function () { url: $('#editor').data('intervention-save-url') }); }; - }, 0); + }, timeUntilIntervention); } } });