CLOUDSTACK-2350: UI - Instances menu - change affinity action - list affinity groups that belongs to instance owner.

This commit is contained in:
Jessica Wang 2013-06-12 10:55:06 -07:00
parent 862b955059
commit 02399d9a2a
1 changed files with 6 additions and 1 deletions

View File

@ -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 = [];