From 21ebf03ea1221645e403e8af1c54fa2e5789cf8e Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 24 Apr 2012 12:14:15 -0700 Subject: [PATCH] cloudstack 3.0 UI - infrastructure page - guest traffic type - network tab - fix a bug that clicking a network that doesn't belong to current login user would show spinning wheel forever in detailView. --- ui/scripts/network.js | 2 +- ui/scripts/system.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index fcdd95cd963..0abba2efe24 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -697,7 +697,7 @@ ], dataProvider: function(args) { $.ajax({ - url: createURL("listNetworks&id=" + args.context.networks[0].id + "&listAll=true"), //pass "listAll=true" for now until API is fixed. + url: createURL("listNetworks&id=" + args.context.networks[0].id + "&listAll=true"), //pass "&listAll=true" to "listNetworks&id=xxxxxxxx" for now before API gets fixed. data: { listAll: true }, dataType: "json", async: true, diff --git a/ui/scripts/system.js b/ui/scripts/system.js index e713e1eaa31..055ee5cc203 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -1684,7 +1684,7 @@ ], dataProvider: function(args) { $.ajax({ - url: createURL("listNetworks&id=" + args.context.networks[0].id), + url: createURL("listNetworks&id=" + args.context.networks[0].id + "&listAll=true"), //pass "&listAll=true" to "listNetworks&id=xxxxxxxx" for now before API gets fixed. dataType: "json", async: false, success: function(json) {