diff --git a/plugins/dynamix.docker.manager/DockerContainers.page b/plugins/dynamix.docker.manager/DockerContainers.page index ae28c597c..9727aed28 100644 --- a/plugins/dynamix.docker.manager/DockerContainers.page +++ b/plugins/dynamix.docker.manager/DockerContainers.page @@ -44,7 +44,6 @@ th.load{width:140px} input.wait{width:24px;margin:0 4px;padding:0 5px;border:none;box-shadow:none;background-color:transparent} table tbody td{line-height:normal} - @@ -58,6 +57,7 @@ table tbody td{line-height:normal} + @@ -68,16 +68,14 @@ $('#title').append(""); -function resize(bind) { +function resize() { var width = []; - var h = $('#docker_list').height(); - var s = Math.max(window.innerHeight-340,330); - if (h>s || bind) { - $('#docker_list').height(s); - $('#docker_containers tbody tr:first-child td').each(function(){width.push($(this).width());}); - $('#docker_containers thead tr th').each(function(i){$(this).width(width[i]);}); - if (!bind) $('#docker_containers thead,#docker_containers tbody').addClass('fixed'); - } + $('#docker_list').height(Math.max(window.innerHeight-340,330)); + $('#docker_containers thead,#docker_containers tbody').removeClass('fixed'); + $('#docker_containers tbody tr:first-child td').each(function(){width.push($(this).width());}); + $('#docker_containers thead tr th').each(function(i){$(this).width(width[i]);}); + $('#docker_containers tbody tr td').each(function(i){$(this).width(width[i]);}); + $('#docker_containers thead,#docker_containers tbody').addClass('fixed'); } function resetSorting() { @@ -99,7 +97,7 @@ var sortableHelper = function(e,i){ }); return i; }; -function loadlist() { +function loadlist(init) { timers.docker = setTimeout(function(){$('div.spinner.fixed').show('slow');},500); $.get('/plugins/dynamix.docker.manager/include/DockerContainers.php',function(d) { clearTimeout(timers.docker); @@ -114,7 +112,7 @@ function loadlist() { $('head').append('
_(Application)__(Version)__(Network)__(Port Mappings)_ (_(App to Host)_)_(Volume Mappings)_ (_(App to Host)_)_(CPU & Memory load)__(Autostart)__(Uptime)_