mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 06:19:47 -05:00
Miscellaneous updates
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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'):?>
|
||||
|
||||
Reference in New Issue
Block a user