Commit 6feadff2 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

Added timeout to ajax loading gif so it doesn't appear immediately

parent 2ee78114
......@@ -97,12 +97,14 @@ try {
console.log("=== main.js finished ===");
var timeout;
$(document).ajaxStart(function () {
//show ajax indicator
db.ajax_indicator_start('loading data.. please wait..');
timeout = setTimeout(db.ajax_indicator_start, 600);
}).ajaxStop(function () {
//hide ajax indicator
db.ajax_indicator_stop();
clearTimeout(timeout);
});
(function worker(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment