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 |
} |
} |
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 |
} |
} |
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 |
|
|
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 |
} |
} |
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 |