mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
new UI - multiple-selection action - confirm before reboot VM.
This commit is contained in:
parent
8d30ae81af
commit
d8f10ffa34
@ -181,8 +181,11 @@ function afterLoadInstanceJSP() {
|
||||
return false;
|
||||
}
|
||||
|
||||
for(var id in selectedItemsInMidMenu) {
|
||||
var apiCommand = "command=rebootVirtualMachine&id="+id;
|
||||
$("#dialog_confirmation_reboot_vm")
|
||||
.dialog('option', 'buttons', {
|
||||
"Confirm": function() {
|
||||
$(this).dialog("close");
|
||||
|
||||
var apiInfo = {
|
||||
label: "Reboot Instance",
|
||||
isAsyncJob: true,
|
||||
@ -206,10 +209,20 @@ function afterLoadInstanceJSP() {
|
||||
vmToRightPanel($midmenuItem1);
|
||||
}
|
||||
}
|
||||
|
||||
for(var id in selectedItemsInMidMenu) {
|
||||
var apiCommand = "command=rebootVirtualMachine&id="+id;
|
||||
doActionForMidMenu(id, apiInfo, apiCommand);
|
||||
}
|
||||
|
||||
selectedItemsInMidMenu = {}; //clear selected items for action
|
||||
},
|
||||
"Cancel": function() {
|
||||
$(this).dialog("close");
|
||||
|
||||
}
|
||||
}).dialog("open");
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user