diff --git a/plugins/dynamix.docker.manager/include/DockerContainers.php b/plugins/dynamix.docker.manager/include/DockerContainers.php
index 80dfd9693..85fe67ff7 100644
--- a/plugins/dynamix.docker.manager/include/DockerContainers.php
+++ b/plugins/dynamix.docker.manager/include/DockerContainers.php
@@ -34,8 +34,9 @@ if (!$containers && !$images) {
}
if (file_exists($user_prefs)) {
- $prefs = parse_ini_file($user_prefs); $sort = [];
- foreach ($containers as $ct) $sort[] = array_search($ct['Name'],$prefs) ?? 999;
+ $prefs = @parse_ini_file($user_prefs) ?: [];
+ $sort = [];
+ foreach ($containers as $ct) $sort[] = array_search($ct['Name'],$prefs);
array_multisort($sort,SORT_NUMERIC,$containers);
unset($sort);
}
@@ -99,7 +100,7 @@ foreach ($containers as $ct) {
[$host_path,$container_path,$access_mode] = my_explode(':',$mount,3);
$paths[] = sprintf('%s
%s', htmlspecialchars($container_path), $access_mode=='ro'?'long-arrow-left':'arrows-h', htmlspecialchars($host_path));
}
- echo "
| ";
+ echo " |
";
if ($template) {
$appname = "".htmlspecialchars($name)."";
} else {
diff --git a/plugins/dynamix.docker.manager/log.htm b/plugins/dynamix.docker.manager/log.htm
index f233e7d8a..797aa39a9 100644
--- a/plugins/dynamix.docker.manager/log.htm
+++ b/plugins/dynamix.docker.manager/log.htm
@@ -5,7 +5,7 @@
-
+
| _(Name)_ | _(Description)_ | _(CPUs)_ | _(Memory)_ | _(vDisks)_ | _(Graphics)_ | _(Autostart)_ |
@@ -154,8 +152,7 @@ function resize(bind) {
var s = Math.max(window.innerHeight-340,330);
if (h>s || bind) {
$('#kvm_list').height(s);
- $('#kvm_table tbody tr:first-child td').each(function(){width.push($(this).width());});
- $('#kvm_table thead tr th').each(function(i){$(this).width(width[i]);});
+ $('#kvm_table thead tr th').each(function(){$(this).width($(this).width());});
if (!bind) $('#kvm_table thead,#kvm_table tbody').addClass('fixed');
}
}
@@ -214,31 +211,41 @@ function dialogStyle() {
$('.ui-button-text').css({'padding':'0px 5px'});
}
var sortableHelper = function(e,ui){
+ ui.next().hide();
ui.children().each(function(){$(this).width($(this).width());});
return ui;
};
function LockButton() {
if ($.cookie('lockbutton') == null) {
$.cookie('lockbutton','lockbutton');
+ $('i.mover').show();
+ $('#kvm_list .sortable').css({'cursor':'move'});
- $('div.nav-item.LockButton').find('a').prop('title',"_(Lock sortable items)_");
- $('div.nav-item.LockButton').find('b').removeClass('icon-u-lock red-text').addClass('icon-u-lock-open green-text');
+ $('div.nav-item.LockButton a').prop('title',"_(Lock sortable items)_");
+ $('div.nav-item.LockButton b').removeClass('icon-u-lock red-text').addClass('icon-u-lock-open green-text');
- $('div.nav-item.LockButton').find('span').text("_(Lock sortable items)_");
- $('#kvm_list').sortable({helper:sortableHelper,items:'tr.sortable',cursor:'move',axis:'y',containment:'parent',delay:100,opacity:0.5,zIndex:9999,forcePlaceholderSize:true,
+ $('div.nav-item.LockButton span').text("_(Lock sortable items)_");
+ $('#kvm_list').sortable({helper:sortableHelper,items:'.sortable',cursor:'grab',axis:'y',containment:'parent',delay:100,opacity:0.5,zIndex:9999,forcePlaceholderSize:true,
update:function(e,ui){
- var row = $('#kvm_list').find('tr:first');
- var names = ''; var index = '';
+ $('#kvm_list .sortable').each(function(){
+ var parent = $(this).attr('parent-id');
+ var child = $('tr[child-id="'+parent+'"]');
+ child.detach().insertAfter($(this));
+ });
+ var row = $('#kvm_list tr:first');
+ var names = '', index = '';
row.parent().children().find('td.vm-name').each(function(){names+=$(this).find('a').text()+';';index+=$(this).parent().parent().children().index($(this).parent())+';';});
$.post('/plugins/dynamix.vm.manager/include/UserPrefs.php',{names:names,index:index});
}});
} else {
$.removeCookie('lockbutton');
+ $('i.mover').hide();
+ $('#kvm_list .sortable').css({'cursor':'default'});
- $('div.nav-item.LockButton').find('a').prop('title',"_(Unlock sortable items)_");
- $('div.nav-item.LockButton').find('b').removeClass('icon-u-lock-open green-text').addClass('icon-u-lock red-text');
+ $('div.nav-item.LockButton a').prop('title',"_(Unlock sortable items)_");
+ $('div.nav-item.LockButton b').removeClass('icon-u-lock-open green-text').addClass('icon-u-lock red-text');
- $('div.nav-item.LockButton').find('span').text("_(Unlock sortable items)_");
+ $('div.nav-item.LockButton span').text("_(Unlock sortable items)_");
$('#kvm_list').sortable('destroy');
}
}
@@ -292,20 +299,7 @@ $(function() {
-lang="=strtok($locale,'_')?:'en'?>">
-
-
-
-
-
-
-
-">
-
-
_(ISO Image)_:
:
-
-
\ No newline at end of file
diff --git a/plugins/dynamix.vm.manager/VMs.page b/plugins/dynamix.vm.manager/VMs.page
index 2f5e8f9ea..f9e5d4218 100644
--- a/plugins/dynamix.vm.manager/VMs.page
+++ b/plugins/dynamix.vm.manager/VMs.page
@@ -1,6 +1,7 @@
Menu="Tasks:70"
Type="xmenu"
Code="e918"
+Lock="true"
Cond="exec(\"grep -o '^SERVICE=.enable' /boot/config/domain.cfg 2>/dev/null\")"
---
";
+ echo " | ";
echo "$image$vm "._($status)." | ";
echo "$desc | ";
echo "$vcpu | ";
@@ -134,9 +135,9 @@ foreach ($vms as $vm) {
/* Disk device information */
echo " " : "' style='display:none'>");
echo "";
- echo "";
+ echo "";
echo "| "._('Disk devices')." | "._('Serial')." | "._('Bus')." | "._('Capacity')." | "._('Allocation')." | Boot Order | ";
- echo "";
+ echo "";
/* Display VM disks */
foreach ($lv->get_disk_stats($res) as $arrDisk) {
diff --git a/plugins/dynamix/DashStats.page b/plugins/dynamix/DashStats.page
index e24d77c65..0a010ec21 100644
--- a/plugins/dynamix/DashStats.page
+++ b/plugins/dynamix/DashStats.page
@@ -173,7 +173,7 @@ switch ($display['theme']) {
@@ -676,10 +666,7 @@ function hideShow() {
}
}
-
-
- | |