From 89628cae5c5223d1598ae15968f953410a787a51 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 9 Jan 2012 16:11:55 -0800 Subject: [PATCH] bug 12306: cloudstack 3.0 new UI - account page - create account - pass listAll=true when calling listDomains to populate domain dropdown. --- ui/scripts/accounts.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js index 7ffcf1a49f3..d8b937f876f 100644 --- a/ui/scripts/accounts.js +++ b/ui/scripts/accounts.js @@ -82,9 +82,12 @@ domainid: { label: 'Domain', validation: { required: true }, - select: function(args) { + select: function(args) { + var array1 = []; + if(isAdmin()) + array1.push("&listAll=true"); $.ajax({ - url: createURL("listDomains"), + url: createURL("listDomains" + array1.join("")), dataType: "json", async: false, success: function(json) {