cloudstack 3.0 UI - VPC - IP Address - PF, LB - if IP is associated with a tier, hide tier dropdown when creating PF, LB rule.

This commit is contained in:
Jessica Wang 2012-07-10 17:51:30 -07:00
parent 708b4f7003
commit 663ba8c898
1 changed files with 18 additions and 8 deletions

View File

@ -2421,13 +2421,18 @@
});
// Check if tiers are present; hide/show header drop-down
var $headerFields = $multi.find('.header-fields');
if ('vpc' in args.context) {
$headerFields.show();
}
var $headerFields = $multi.find('.header-fields');
if ('vpc' in args.context) {
if(args.context.ipAddresses[0].associatednetworkid == null) {
$headerFields.show();
}
else {
$headerFields.hide();
}
}
else if('networks' in args.context){
$headerFields.hide();
}
$headerFields.hide();
}
}
},
@ -2653,9 +2658,14 @@
});
// Check if tiers are present; hide/show header drop-down
var $headerFields = $multi.find('.header-fields');
var $headerFields = $multi.find('.header-fields');
if ('vpc' in args.context) {
$headerFields.show();
if(args.context.ipAddresses[0].associatednetworkid == null) {
$headerFields.show();
}
else {
$headerFields.hide();
}
}
else if('networks' in args.context){
$headerFields.hide();