bug 12306: cloudstack 3.0 new UI - system page - pass listAll=true when calling listDomains to populate domain dropdown.

This commit is contained in:
Jessica Wang 2012-01-09 16:43:30 -08:00
parent 5886109fb9
commit b1f2dfa52d
3 changed files with 10 additions and 22 deletions

View File

@ -82,12 +82,9 @@
domainid: {
label: 'Domain',
validation: { required: true },
select: function(args) {
var array1 = [];
if(isAdmin())
array1.push("&listAll=true");
select: function(args) {
$.ajax({
url: createURL("listDomains" + array1.join("")),
url: createURL("listDomains&listAll=true"),
dataType: "json",
async: false,
success: function(json) {

View File

@ -105,12 +105,9 @@
domainId: {
label: 'Domain',
dependsOn: 'isPublic',
select: function(args) {
var array1 = [];
if(isAdmin())
array1.push("&listAll=true");
select: function(args) {
$.ajax({
url: createURL("listDomains" + array1.join("")),
url: createURL("listDomains&listAll=true"),
dataType: "json",
async: false,
success: function(json) {
@ -419,12 +416,9 @@
domainId: {
label: 'Domain',
dependsOn: 'isPublic',
select: function(args) {
var array1 = [];
if(isAdmin())
array1.push("&listAll=true");
select: function(args) {
$.ajax({
url: createURL("listDomains" + array1.join("")),
url: createURL("listDomains&listAll=true"),
dataType: "json",
async: false,
success: function(json) {
@ -731,12 +725,9 @@
domainId: {
label: 'Domain',
dependsOn: 'isPublic',
select: function(args) {
var array1 = [];
if(isAdmin())
array1.push("&listAll=true");
select: function(args) {
$.ajax({
url: createURL("listDomains" + array1.join("")),
url: createURL("listDomains&listAll=true"),
dataType: "json",
async: false,
success: function(json) {

View File

@ -647,7 +647,7 @@
}
else { //list all domains
$.ajax({
url: createURL("listDomains"),
url: createURL("listDomains&listAll=true"),
dataType: "json",
async: false,
success: function(json) {
@ -2636,7 +2636,7 @@
// Step 2: Setup Zone
function(args) {
$.ajax({
url: createURL("listDomains"),
url: createURL("listDomains&listAll=true"),
dataType: "json",
async: false,
success: function(json) {