From 02399d9a2a2dd3b960b676a1ac435fb4bca14778 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 12 Jun 2013 10:55:06 -0700 Subject: [PATCH] CLOUDSTACK-2350: UI - Instances menu - change affinity action - list affinity groups that belongs to instance owner. --- ui/scripts/instances.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 33a57675aee..da36de748ab 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -640,9 +640,14 @@ name: { label: 'label.name' }, type: { label: 'label.type' } }, - dataProvider: function(args) { + dataProvider: function(args) { + var data = { + domainid: args.context.instances[0].domainid, + account: args.context.instances[0].account + }; $.ajax({ url: createURL('listAffinityGroups'), + data: data, async: false, //make it sync to avoid dataProvider() being called twice which produces duplicate data success: function(json) { var items = [];