mirror of https://github.com/apache/cloudstack.git
bug 12306: cloudstack 3.0 new UI - system page - pass listAll=true when calling listDomains to populate domain dropdown.
This commit is contained in:
parent
5886109fb9
commit
b1f2dfa52d
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue