mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
new UI - multiple-selection action - confirm before stop VM.
This commit is contained in:
parent
ae8bdeb0f4
commit
2ae87d665a
@ -124,8 +124,11 @@ function afterLoadInstanceJSP() {
|
||||
return false;
|
||||
}
|
||||
|
||||
for(var id in selectedItemsInMidMenu) {
|
||||
var apiCommand = "command=stopVirtualMachine&id="+id;
|
||||
$("#dialog_confirmation_stop_vm")
|
||||
.dialog('option', 'buttons', {
|
||||
"Confirm": function() {
|
||||
$(this).dialog("close");
|
||||
|
||||
var apiInfo = {
|
||||
label: "Stop Instance",
|
||||
isAsyncJob: true,
|
||||
@ -149,10 +152,20 @@ function afterLoadInstanceJSP() {
|
||||
vmToRightPanel($midmenuItem1);
|
||||
}
|
||||
}
|
||||
|
||||
for(var id in selectedItemsInMidMenu) {
|
||||
var apiCommand = "command=stopVirtualMachine&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