/[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 2027 by torben, Fri Jul 19 13:20:33 2013 UTC revision 2028 by torben, Tue Jul 23 15:30:12 2013 UTC
# Line 133  function loginDialog() { Line 133  function loginDialog() {
133          $('#dialog-login').dialog({          $('#dialog-login').dialog({
134                  modal: true,                  modal: true,
135                  height: 210,                  height: 210,
136                  width: 325,                  width: 350,
137                  buttons: {                  buttons: {
138                          Login: loginDialogSubmit                          Login: loginDialogSubmit
139                  }                  }
# Line 149  function loginDialogSubmit() { Line 149  function loginDialogSubmit() {
149                          password = $('#password').val();                          password = $('#password').val();
150    
151                          $('#login').html("Logged in as <i>" + username + "</i>");                          $('#login').html("Logged in as <i>" + username + "</i>");
152                            refreshData();
153                  } else {                  } else {
154                          alert(data);                          alert(data);
155                  }                  }
# Line 271  function refreshData() { Line 272  function refreshData() {
272                                  vm.find('.console').data('session', session);                                  vm.find('.console').data('session', session);
273                                  vm.find('.console').data('name', name);                                  vm.find('.console').data('name', name);
274                                  vm.find('.settings').hide();                                  vm.find('.settings').hide();
275                                  vm.find('.actionstop').show();                                  if (loggedin) {
276                                  vm.find('.actionstart').hide();                                          vm.find('.actionstop').show();
277                                            vm.find('.actionstart').hide();
278                                    }
279                                  vm.find('.os').text(' - ' + os);                                  vm.find('.os').text(' - ' + os);
280    
281    
# Line 294  function refreshData() { Line 297  function refreshData() {
297                                  vm.find('.network').hide();                                  vm.find('.network').hide();
298                                  vm.find('.console').hide();                                  vm.find('.console').hide();
299                                  vm.find('.settings').show();                                  vm.find('.settings').show();
300                                  vm.find('.actionstop').hide();                                  if (loggedin) {
301                                  vm.find('.actionstart').show();                                          vm.find('.actionstop').hide();
302                                            vm.find('.actionstart').show();
303                                    }
304                                  vm.find('.cpu_graph').hide();                                  vm.find('.cpu_graph').hide();
305                                  vm.find('.mem_graph').hide();                                  vm.find('.mem_graph').hide();
306                          }                          }
# Line 496  foreach($vms_array as $vm) { Line 501  foreach($vms_array as $vm) {
501                                  <a href='#' onclick="doAction('hardshutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force shutdown</a>                                  <a href='#' onclick="doAction('hardshutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force shutdown</a>
502                          </span>                          </span>
503                                                    
504                          <span class="actionstart">                                                <span class="actionstart" style='display:none'>                
505                                  <a href='#' onclick="doAction('start','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >start</a> |                                  <a href='#' onclick="doAction('start','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >start</a> |
506                                  stop |                                  stop |
507                                  force shutdown                                  force shutdown

Legend:
Removed from v.2027  
changed lines
  Added in v.2028

  ViewVC Help
Powered by ViewVC 1.1.20