Miscellaneous updates

This commit is contained in:
bergware
2020-02-10 13:12:58 +01:00
parent 647a5cabe3
commit 7064ca30b4
4 changed files with 7 additions and 5 deletions

View File

@@ -51,13 +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').remove();list.html(data[0]); $('#plugin_table').trigger('destroy'); break;
case 'return' : $('div.spinner').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');
}
<?if ($display['resize']):?>
resize();
@@ -75,6 +76,7 @@ function spinner() {
$('div.spinner.fixed').show('slow');
}
$(function() {
spinner();
loadlist();
$('#plugin_tree').fileTree({root:'/boot/',filter:'plg'}, function(file) {$('#plugin_file').val(file);});
$('.tabs').append("<span id='updateall' class='status vhshift' style='display:none;margin-left:12px'><input type='button' value='Update All Plugins' onclick='spinner();openBox(\"/plugins/dynamix.plugin.manager/scripts/plugin&arg1=updateall\",\"Update All Plugins\",600,600,true,\"loadlist\",\":return\")'></span>");
@@ -85,5 +87,5 @@ $(function() {
</script>
<table class='tablesorter plugins shift' id='plugin_table'>
<thead><tr><th></th><th>Plugin</th><th>Author</th><th>Version</th><th>Status</th><th>Uninstall</th></tr></thead>
<tbody id="plugin_list"><tr><td colspan="6"><div class="spinner"></div></td><tr></tbody>
<tbody id="plugin_list"><tr><td colspan="6"></td><tr></tbody>
</table>