bug 12239: cloudStack 3.0 new UI - Navigating to accounts from domain will only show accounts belonging to that domain

This commit is contained in:
Jessica Wang 2011-12-03 13:15:15 -08:00
parent cdbf5b0db5
commit 1641229c07

View File

@ -166,9 +166,12 @@
}
},
dataProvider: function(args) {
dataProvider: function(args) {
var array1 = [];
if("domains" in args.context)
array1.push("&domainid=" + args.context.domains[0].id);
$.ajax({
url: createURL("listAccounts&page=" + args.page + "&pagesize=" + pageSize),
url: createURL("listAccounts" + array1.join("") + "&page=" + args.page + "&pagesize=" + pageSize),
dataType: "json",
async: true,
success: function(json) {