cloudstack 3.0 UI -IP Address - create LB rule screen - show tier dropdown if coming from VPC secton, hide tier dropdown if coming from Guest Network section.

This commit is contained in:
Jessica Wang 2012-07-10 15:51:37 -07:00
parent e212b6420a
commit b2e1dd7697
1 changed files with 5 additions and 6 deletions

View File

@ -2391,14 +2391,13 @@
}
});
// Check if tiers are present; hide/show header drop-down
var hasTiers = false;
// Check if tiers are present; hide/show header drop-down
var $headerFields = $multi.find('.header-fields');
if (hasTiers) {
$headerFields.hide();
} else {
if ('vpc' in args.context) {
$headerFields.show();
}
else if('networks' in args.context){
$headerFields.hide();
}
}
},