cloudstack 3.0 UI - VPC - gateways - populate Static Routes tab.

This commit is contained in:
Jessica Wang 2012-07-11 13:29:56 -07:00
parent 62cf3bd8da
commit 9212d16080
1 changed files with 11 additions and 8 deletions

View File

@ -562,14 +562,17 @@
}
}
},
dataProvider: function(args) {
setTimeout(function() {
args.response.success({
data: [
{ cidr: '10.2.2.0/24' }
]
});
}, 500);
dataProvider: function(args) {
$.ajax({
url: createURL('listStaticRoutes'),
data: {
gatewayid: args.context.vpcGateways[0].id
},
success: function(json) {
var items = json.liststaticroutesresponse.staticroute;
args.response.success({ data: items });
}
});
}
});
}