CLOUDSTACK-4793: UI > Virtual Routers > Advanced Search > add cluster dropdown since API now supports it.

This commit is contained in:
Jessica Wang 2013-11-18 15:00:58 -08:00
parent 876b7e492f
commit 2587e42db6
1 changed files with 23 additions and 1 deletions

View File

@ -7620,7 +7620,29 @@
}
});
}
},
},
clusterid: {
label: 'label.cluster',
dependsOn: 'podid',
select: function(args) {
$.ajax({
url: createURL("listClusters&podid=" + args.podid),
dataType: "json",
async: false,
success: function(json) {
var clusters = json.listclustersresponse.cluster ? json.listclustersresponse.cluster : [];
args.response.success({
data: $.map(clusters, function(cluster) {
return {
id: cluster.id,
description: cluster.name
};
})
});
}
});
}
},
domainid: {
label: 'Domain',
select: function(args) {