Revision 69ba1fcf ui/templates/machines_single.html
b/ui/templates/machines_single.html | ||
---|---|---|
496 | 496 |
existing.find(".connect-border").hide(); |
497 | 497 |
existing.find(".connect-arrow").hide(); |
498 | 498 |
existing.find(".column1 .state .spinner").hide(); |
499 |
|
|
500 |
if (server.status == "STOPPED") { |
|
501 |
existing.find(".column1 .state").removeClass().addClass("state terminated-state"); |
|
502 |
} else { |
|
503 |
existing.find(".column1 .state").removeClass().addClass("state error-state"); |
|
504 |
} |
|
505 |
|
|
499 | 506 |
existing.find(' .wave').attr('src','static/icons/indicators/medium/wave.gif').show(); |
500 |
existing.find(".column1 .state").removeClass().addClass("state terminated-state"); |
|
501 | 507 |
setTimeout("$('#" + server.id +" .wave').attr('src','').hide()", 3000); |
502 | 508 |
} |
503 | 509 |
else if (INACTIVE_STATES.indexOf(current_message) >= 0 && |
... | ... | |
585 | 591 |
set_machine_os_image(machine, "single", "off", server_image); |
586 | 592 |
machine.find(".connect-border").hide(); |
587 | 593 |
machine.find(".connect-arrow").hide(); |
588 |
machine.find(".column1 .state").removeClass().addClass("state terminated-state"); |
|
594 |
if (server.status == "STOPPED") { |
|
595 |
machine.find(".column1 .state").removeClass().addClass("state terminated-state"); |
|
596 |
} else { |
|
597 |
machine.find(".column1 .state").removeClass().addClass("state error-state"); |
|
598 |
} |
|
599 |
|
|
589 | 600 |
} |
590 | 601 |
//show spinner while machine is building or rebooting |
591 | 602 |
if (server.status == 'BUILD' || |
Also available in: Unified diff