--- misc/xenconsole/index.php 2013/03/26 08:32:05 1956 +++ misc/xenconsole/index.php 2013/03/26 13:15:05 1957 @@ -67,17 +67,18 @@ var session = $(this).data('session'); var conurl = $(this).data('conurl'); var name = $(this).data('name'); - console(conurl,session,name); + openConsole(conurl,session,name); }); - $('#logo').click( function(event) { - //refreshData(); - $('#menu').show().position( {my: "left top", of: event} ); + $('#logo').click( function() { + refreshData(); + }); + + $('.settings').click( function(event) { $('#menu').menu( { select: function(event2,ui) { alert( ui.item.text() ); - //closeMenu(); }, create: function(event3,ui) { menu = 1; @@ -86,6 +87,7 @@ my: "left", of: event }*/ }); + $('#menu').show().position( {my: "left top", of: event} ); event.stopPropagation(); }); @@ -164,6 +166,7 @@ vm.find('.console').data('conurl', conurl); vm.find('.console').data('session', session); vm.find('.console').data('name', name); + vm.find('.settings').hide(); vm.find('.actionstop').show(); vm.find('.actionstart').hide(); vm.find('.os').text(' - ' + os); @@ -186,6 +189,7 @@ vm.find('.network').hide(); vm.find('.console').hide(); + vm.find('.settings').show(); vm.find('.actionstop').hide(); vm.find('.actionstart').show(); vm.find('.cpu_graph').hide(); @@ -226,7 +230,7 @@ }); } -function console(url, session, name) { +function openConsole(url, session, name) { if (url == '') return; @@ -345,6 +349,9 @@ + @@ -398,10 +405,14 @@ +
+