CLOUDSTACK-1910: UI- Regions menu - GSLB - View assigned load balancing - refresh data.

This commit is contained in:
Jessica Wang 2013-04-25 16:03:02 -07:00
parent 6f60833f93
commit 64635abba5
1 changed files with 18 additions and 9 deletions

View File

@ -461,18 +461,27 @@
id: 'lbUnderGSLB',
label: 'assigned load balancing',
fields: {
'name': { label: 'label.name' },
name: { label: 'label.name' },
publicport: { label: 'label.public.port' },
privateport: { label: 'label.private.port' },
algorithm: { label: 'label.algorithm' }
privateport: { label: 'label.private.port' },
algorithm: { label: 'label.algorithm' }
},
dataProvider: function(args) {
var items = args.context.GSLB[0].loadbalancerrule;
args.response.success({
data: items
});
dataProvider: function(args) {
var data = {
id: args.context.GSLB[0].id
};
$.ajax({
url: createURL('listGlobalLoadBalancerRules'),
data: data,
success: function(json) {
var items = json.listgloballoadbalancerrulesresponse.globalloadbalancerrule[0].loadbalancerrule;
args.response.success({
data: items
});
}
});
},
actions: {
actions: {
add: {
label: 'assign more load balancing',
messages: {