mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-4111: UI > IP Address page > Associate New IP dialog - show/hide cross zone dropdown upon region "Local" in listRegions API response.
This commit is contained in:
parent
c3bc9d65dd
commit
5034e8ee2d
@ -1947,12 +1947,17 @@
|
||||
success: function(json) {
|
||||
var items = json.listregionsresponse.region;
|
||||
if(items != null) {
|
||||
var region = items[0];
|
||||
if(region.portableipserviceenabled == true) {
|
||||
args.$form.find('.form-item[rel=isportable]').css('display', 'inline-block');
|
||||
} else {
|
||||
args.$form.find('.form-item[rel=isportable]').hide();
|
||||
}
|
||||
for(var i = 0; i < items.length; i++) {
|
||||
var region = items[0];
|
||||
if(region.name == 'Local') {
|
||||
if(region.portableipserviceenabled == true) {
|
||||
args.$form.find('.form-item[rel=isportable]').css('display', 'inline-block');
|
||||
} else {
|
||||
args.$form.find('.form-item[rel=isportable]').hide();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user