From 62069af817ca4008efc152e3dc62a02e161bc8c0 Mon Sep 17 00:00:00 2001 From: Christian Eichelmann Date: Fri, 7 Nov 2014 13:11:20 +0100 Subject: [PATCH] change setTimeout to setInterval / added ajax timeout --- static/js/ceph.dash.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/ceph.dash.js b/static/js/ceph.dash.js index 2f59b3f..5d9f404 100644 --- a/static/js/ceph.dash.js +++ b/static/js/ceph.dash.js @@ -202,9 +202,7 @@ $(function () { data: null, contentType: 'application/json', success: callback, - complete: function() { - setTimeout(worker, 5000); - } + timeout: 3000 }); } // }}} @@ -393,6 +391,7 @@ $(function () { ajaxCall(window.location.pathname, callback); }; worker(); + setInterval(worker, 5000); // }}} })