mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
removed revert button when the VM is running
This commit is contained in:
parent
d4f21fcbcf
commit
5b9c5c6c2f
@ -474,6 +474,12 @@ define(function(require) {
|
||||
context.off("change", ".snapshot_check_item");
|
||||
context.on("change", ".snapshot_check_item", function() {
|
||||
var snapshotsSection = $(this).closest('.snapshots');
|
||||
if(that.element.STATE == "3"){
|
||||
$(".disk_snapshot_revert", snapshotsSection).hide();
|
||||
}
|
||||
else{
|
||||
$(".disk_snapshot_revert", snapshotsSection).show();
|
||||
}
|
||||
|
||||
// Unselect other check inputs
|
||||
var checked = $(this).is(':checked');
|
||||
|
Loading…
x
Reference in New Issue
Block a user