Updated: animated spinner logic

This commit is contained in:
bergware
2020-02-10 03:26:01 +01:00
parent 8dbb62a97d
commit 8d14545d59

View File

@@ -596,6 +596,7 @@ $('.back_to_top').click(function(event) {
return false;
});
$(function() {
setTimeout(function(){$('div.spinner').not('.fixed').each(function(){$(this).html(unraid_logo);});},150); // display animation if page loading takes longer than 150ms
shortcut.add('F1',function(){HelpButton();});
<?if ($var['regTy']=='unregistered'):?>
$('#licensetype').addClass('orange-text');
@@ -681,7 +682,6 @@ $(function() {
});
}
$('form').append($('<input>').attr({type:'hidden', name:'csrf_token', value:'<?=$var['csrf_token']?>'}));
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>