mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 10409: edit zone - make domain suffix field editable.
This commit is contained in:
parent
919ca59d5c
commit
c20f467aee
@ -313,6 +313,24 @@
|
||||
'management': {
|
||||
detailView: {
|
||||
viewAll: { path: '_zone.pods', label: 'Pods' },
|
||||
actions: {
|
||||
edit: {
|
||||
label: 'Edit',
|
||||
action: function(args) {
|
||||
var array1 = [];
|
||||
array1.push("&domain=" + todb(args.data.domain));
|
||||
$.ajax({
|
||||
url: createURL("updateZone&id=" + args.context.zones[0].id + array1.join("")),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
selectedZoneObj = json.updatezoneresponse.zone; //override selectedZoneObj after update zone
|
||||
args.response.success({data: selectedZoneObj});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
tabs: {
|
||||
details: {
|
||||
title: 'Details',
|
||||
@ -332,7 +350,10 @@
|
||||
label: 'Security Groups Enabled',
|
||||
converter:cloudStack.converters.toBooleanText
|
||||
},
|
||||
domain: { label: 'Domain' },
|
||||
domain: {
|
||||
label: 'Domain',
|
||||
isEditable: true
|
||||
},
|
||||
|
||||
//only advanced zones have VLAN and CIDR Address
|
||||
guestcidraddress: { label: 'Guest CIDR Address', isEditable: true },
|
||||
@ -929,7 +950,7 @@
|
||||
|
||||
//args.data.networkofferingid is null when networkofferingid field is hidden
|
||||
if(args.data.networkofferingid != null && args.data.networkofferingid != selectedGuestNetworkObj.networkofferingid)
|
||||
array1.push("&networkofferingid=" + todb(args.data.networkofferingid)); //???
|
||||
array1.push("&networkofferingid=" + todb(args.data.networkofferingid));
|
||||
|
||||
//args.data.networkdomain is null when networkdomain field is hidden
|
||||
if(args.data.networkdomain != null && args.data.networkdomain != selectedGuestNetworkObj.networkdomain)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user