Skip to content

Commit

Permalink
change setTimeout to setInterval / added ajax timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Eichelmann committed Nov 7, 2014
1 parent 449bf2c commit 62069af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions static/js/ceph.dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ $(function () {
data: null,
contentType: 'application/json',
success: callback,
complete: function() {
setTimeout(worker, 5000);
}
timeout: 3000
});
}
// }}}
Expand Down Expand Up @@ -393,6 +391,7 @@ $(function () {
ajaxCall(window.location.pathname, callback);
};
worker();
setInterval(worker, 5000);
// }}}
})

Expand Down

0 comments on commit 62069af

Please sign in to comment.