bug 12306: cloudstack 3.0 new UI - create service offering, create disk offering - pass listAll=true when calling listDomains to populate domain dropdown.

This commit is contained in:
Jessica Wang 2012-01-09 16:23:00 -08:00
parent 28704eb8a1
commit 3355c6cffe
1 changed files with 13 additions and 4 deletions

View File

@ -105,9 +105,12 @@
domainId: {
label: 'Domain',
dependsOn: 'isPublic',
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) {
@ -417,8 +420,11 @@
label: 'Domain',
dependsOn: 'isPublic',
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) {
@ -726,8 +732,11 @@
label: 'Domain',
dependsOn: 'isPublic',
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) {