--- misc/xenconsole/index.php 2012/11/30 17:56:07 1885 +++ misc/xenconsole/index.php 2012/11/30 21:41:29 1886 @@ -90,16 +90,19 @@ }); } -function doAction(action, uuid) { +function doAction(action, uuid, vm) { var key = prompt("Key"); if (key == "" || key == null) { return; } document.body.style.cursor = 'wait'; + $('#vm_' + vm).find('.state').css("background-image", "url('gfx/vps_topyellow.png')"); var url = "action.php?action=" + action + "&uuid=" + uuid + "&key=" + key; var response = $.get(url, function(data) { - alert(data); + if (data != 'OK') { + alert(data); + } document.body.style.cursor = 'default' refreshData(); @@ -231,12 +234,12 @@ - start | + start | stop | force shutdown