mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
new UI - localize detach iso from vm dialog.
This commit is contained in:
parent
ac82ee7dc2
commit
6baf6d99a3
@ -1 +1,2 @@
|
||||
Details = Details
|
||||
please.confirm.you.want.to.detach.an.iso.from.the.virtual.machine = Please confirm you want to detach an ISO from the virtual machine
|
||||
|
||||
|
||||
@ -1036,3 +1036,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- router tab template (end) -->
|
||||
|
||||
<!-- dialogs (begin) -->
|
||||
<div id="dialog_detach_iso_from_vm" title="Confirmation" style="display:none">
|
||||
<p><%=t.t("please.confirm.you.want.to.detach.an.iso.from.the.virtual.machine")%></p>
|
||||
</div>
|
||||
<!-- dialogs (end) -->
|
||||
|
||||
@ -64,6 +64,8 @@ function clickInstanceGroupHeader($arrowIcon) {
|
||||
var $noDiskOfferingTemplate = $("#vm_popup_disk_offering_template_no");
|
||||
var $customDiskOfferingTemplate = $("#vm_popup_disk_offering_template_custom");
|
||||
var $existingDiskOfferingTemplate = $("#vm_popup_disk_offering_template_existing");
|
||||
|
||||
initDialog("dialog_detach_iso_from_vm");
|
||||
|
||||
activateDialog($("#dialog_attach_iso").dialog({
|
||||
width: 600,
|
||||
@ -839,17 +841,16 @@ function doAttachISO($t, selectedItemsInMidMenu, vmListAPIMap) {
|
||||
}
|
||||
|
||||
function doDetachISO($t, selectedItemsInMidMenu, vmListAPIMap) {
|
||||
$("#dialog_confirmation")
|
||||
.html("<p>Please confirm you want to detach an ISO from the virtual machine(s)</p>")
|
||||
$("#dialog_detach_iso_from_vm")
|
||||
.dialog('option', 'buttons', {
|
||||
"Confirm": function() {
|
||||
"Yes": function() {
|
||||
$(this).dialog("close");
|
||||
for(var id in selectedItemsInMidMenu) {
|
||||
var apiCommand = "command=detachIso&virtualmachineid="+id;
|
||||
doActionForMidMenu(id, $t, apiCommand, vmListAPIMap);
|
||||
}
|
||||
},
|
||||
"Cancel": function() {
|
||||
"No": function() {
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}).dialog("open");
|
||||
|
||||
@ -743,7 +743,14 @@ function setVmStateInRightPanel(stateValue, $stateField) {
|
||||
$stateField.text(stateValue).removeClass("green red").addClass("gray");
|
||||
}
|
||||
|
||||
|
||||
function initDialog(elementId) {
|
||||
$("#"+elementId).dialog({
|
||||
width: 600,
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user