/[projects]/misc/xenconsole/index.php
ViewVC logotype

Diff of /misc/xenconsole/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1892 by torben, Sun Dec 2 16:30:24 2012 UTC revision 1894 by torben, Mon Dec 3 15:01:45 2012 UTC
# Line 63  $(document).ready( function() { Line 63  $(document).ready( function() {
63  });  });
64    
65  function refreshData() {  function refreshData() {
66            $("#logo").hide();      
67          $.get('ajaxdata.php', function(xml) {          $.get('ajaxdata.php', function(xml) {
68                  $(xml).find('host').each(function() {                  $(xml).find('host').each(function() {
69                          var memtotal = $(this).find('memtotal').text();                          var memtotal = $(this).find('memtotal').text();
# Line 119  function refreshData() { Line 120  function refreshData() {
120                                  vm.find('.cpu_graph').show();                                  vm.find('.cpu_graph').show();
121                                  vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg);                                  vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg);
122                                  vm.find('.cpu_graph').attr('title',  cpuavg + '%');                                  vm.find('.cpu_graph').attr('title',  cpuavg + '%');
123                                    vm.find('.mem_graph').show();
124                          } else {                          } else {
125                                  if (state == "Halted") {                                  if (state == "Halted") {
126                                          vm.find('.state').css("background-image", "url('gfx/vps_topred.png')");                                          vm.find('.state').css("background-image", "url('gfx/vps_topred.png')");
# Line 133  function refreshData() { Line 135  function refreshData() {
135                                  vm.find('.mem_graph').hide();                                  vm.find('.mem_graph').hide();
136                          }                          }
137                                                    
138                  })                  });
139                    $('#logo').show();
140         });         });
141  }  }
142    

Legend:
Removed from v.1892  
changed lines
  Added in v.1894

  ViewVC Help
Powered by ViewVC 1.1.20