Add block to show/hide tier select

-- Hidden by default, needs real conditional code
This commit is contained in:
Brian Federle 2012-07-10 15:39:09 -07:00
parent 9f093817f3
commit 262bbbe800
2 changed files with 15 additions and 6 deletions

View File

@ -1236,12 +1236,20 @@
custom: cloudStack.uiCustom.enableStaticNAT({
// VPC
tierSelect: function(args) {
args.response.success({
data: [
{ id: '1', description: 'VPC 1' },
{ id: '2', description: 'VPC 2' }
]
});
args.$tierSelect.hide(); // Hidden by default
// Determine if tiers are supported here
var enableTiers = false;
if (enableTiers) {
args.$tierSelect.show();
args.response.success({
data: [
{ id: '1', description: 'VPC 1' },
{ id: '2', description: 'VPC 2' }
]
});
}
},
listView: $.extend(true, {}, cloudStack.sections.instances, {

View File

@ -137,6 +137,7 @@
// Get tier data
tierSelect({
context: context,
$tierSelect: $tierSelect,
response: {
success: function(args) {
var data = args.data;