Miscellaneous updates

This commit is contained in:
bergware
2020-02-10 14:09:19 +01:00
parent 7064ca30b4
commit 5d00715dfa
2 changed files with 4 additions and 4 deletions

View File

@@ -51,14 +51,14 @@ function loadlist(id) {
var cmd = id.split(':');
var tr = 'tr#'+cmd[0].replace(/[\. _]/g,'');
switch (cmd[1]) {
case 'return' : $('div.spinner').hide('slow');list.html(data[0]); $('#plugin_table').trigger('destroy'); break;
case 'return' : $('div.spinner.fixed').hide('slow');list.html(data[0]); $('#plugin_table').trigger('destroy'); break;
case 'remove' : list.find(tr).remove(); break;
case 'update' : list.find(tr).remove();
case 'install': if (!list.find(tr).length) list.append(data[0]).trigger('update'); break;
}
} else {
list.html(data[0]);
$('div.spinner').hide('slow');
$('div.spinner.fixed').hide('slow');
}
<?if ($display['resize']):?>
resize();

View File

@@ -356,7 +356,6 @@ $(function() {
if (tab=='tab0') tab = 'tab'+$('input[name$="tabs"]').length; else if ($('#'+tab).length==0) {initab(); tab = 'tab1';}
if ($.cookie('help')=='help') {$('.inline_help').show(); $('#nav-item.HelpButton').addClass('active');}
$('#'+tab).attr('checked', true);
$('div.spinner.fixed').html(unraid_logo);
updateTime();
$.jGrowl.defaults.closeTemplate = '<i class="fa fa-close"></i>';
$.jGrowl.defaults.closerTemplate = '<?=$notify['position'][0]=='b' ? '<div>':'<div class="top">'?>[ close all notifications ]</div>';
@@ -382,7 +381,6 @@ $.ajaxPrefilter(function(s, orig, xhr){
</head>
<body>
<div id="template">
<div class="spinner fixed"></div>
<div class="upgrade_notice" style="display:none"></div>
<div id="header" class="<?=$display['banner']?>">
<div class="logo">
@@ -492,6 +490,7 @@ foreach ($pages as $page) {
unset($pages,$page,$pgs,$pg,$icon);
?>
</div></div>
<div class="spinner fixed"></div>
<form name="rebootNow" method="POST" action="/webGui/include/Boot.php"><input type="hidden" name="cmd" value="reboot"></form>
<iframe id="progressFrame" name="progressFrame" frameborder="0"></iframe>
<?
@@ -596,6 +595,7 @@ $('.back_to_top').click(function(event) {
return false;
});
$(function() {
$('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
shortcut.add('F1',function(){HelpButton();});
<?if ($var['regTy']=='unregistered'):?>