Updated: animated spinner logic

This commit is contained in:
bergware
2020-02-10 02:12:11 +01:00
parent 3f51e6bb36
commit 655e677052
6 changed files with 15 additions and 19 deletions

View File

@@ -680,7 +680,8 @@ $(function() {
});
}
$('form').append($('<input>').attr({type:'hidden', name:'csrf_token', value:'<?=$var['csrf_token']?>'}));
setTimeout(function(){$('div.spinner').each(function(){$(this).html(unraid_logo);});},150); // display animation if page loading takes longer than 150ms
$('div.spinner.fixed').html(unraid_logo);
setTimeout(function(){$('div.spinner').not('.fixed').each(function(){$(this).html(unraid_logo);});},150); // display animation if page loading takes longer than 150ms
watchdog.start();
});
</script>