/[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 1919 by torben, Tue Dec 11 10:18:25 2012 UTC revision 1920 by torben, Tue Jan 29 13:39:39 2013 UTC
# Line 55  $(document).ready( function() { Line 55  $(document).ready( function() {
55          $('.console').click( function() {          $('.console').click( function() {
56                  var session = $(this).data('session');                  var session = $(this).data('session');
57                  var conurl = $(this).data('conurl');                  var conurl = $(this).data('conurl');
58                  console(conurl,session);                  var name = $(this).data('name');
59                    console(conurl,session,name);
60          });          });
61    
62          $('#logo').click( function() {          $('#logo').click( function() {
# Line 122  function refreshData() { Line 123  function refreshData() {
123                                  vm.find('.console').show();                                  vm.find('.console').show();
124                                  vm.find('.console').data('conurl', conurl);                                  vm.find('.console').data('conurl', conurl);
125                                  vm.find('.console').data('session', session);                                  vm.find('.console').data('session', session);
126                                    vm.find('.console').data('name', name);
127                                  vm.find('.actionstop').show();                                  vm.find('.actionstop').show();
128                                  vm.find('.actionstart').hide();                                  vm.find('.actionstart').hide();
129                                  vm.find('.os').text(' - ' + os);                                  vm.find('.os').text(' - ' + os);
# Line 174  function doAction(action, uuid, vm) { Line 176  function doAction(action, uuid, vm) {
176          });          });
177  }  }
178    
179  function console(url, session) {  function console(url, session, name) {
180          if (url == '')          if (url == '')
181                  return;                  return;
182    
# Line 182  function console(url, session) { Line 184  function console(url, session) {
184          if (key == "" || key == null) {          if (key == "" || key == null) {
185                  return;                  return;
186          }          }
187          var url = "console.php?url=" + url + "&session=" + session + "&key=" + key;          var url = "console.php?url=" + url + "&session=" + session + "&key=" + key + "&name=" + name;
188    
189          //window.location = url;          //window.location = url;
190          //$('#mainwindow').load(url);          //$('#mainwindow').load(url);

Legend:
Removed from v.1919  
changed lines
  Added in v.1920

  ViewVC Help
Powered by ViewVC 1.1.20