From 6db6c5cdba0e8efb773395d2a4df58a89ef1bda3 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 14 Sep 2015 16:25:03 +0200 Subject: [PATCH] Set timeout keepalive to fire every (admin_timeout / 2) seconds --- themes/grav/js/admin-all.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/grav/js/admin-all.js b/themes/grav/js/admin-all.js index 91b2be05..dd05e546 100644 --- a/themes/grav/js/admin-all.js +++ b/themes/grav/js/admin-all.js @@ -521,6 +521,6 @@ $(function () { // Keep-alive setInterval(function() { keepAlive(); - }, GravAdmin.config.admin_timeout*1000 - 60*1000); //Call keepAlive() 60s before the admin session timeouts + }, (GravAdmin.config.admin_timeout/2)*1000); //Call keepAlive() 60s before the admin session timeouts });