Temporary fix to keep dashboard UI from reporting error

This commit is contained in:
bfederle 2012-01-19 19:02:52 -08:00
parent be04ff861c
commit fa2a308d56
2 changed files with 8 additions and 1 deletions

View File

@ -114,6 +114,9 @@
if (data.zones) {
$.ajax({
url: createURL('listCapacity'),
data: {
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
},
success: function(json) {
var capacities = json.listcapacityresponse.capacity;

View File

@ -29,7 +29,8 @@
success: function(json) {
dataFns.podCount($.extend(data, {
zoneCount: json.listzonesresponse.count ?
json.listzonesresponse.count : 0
json.listzonesresponse.count : 0,
zones: json.listzonesresponse.zone
}));
}
});
@ -78,6 +79,9 @@
if (data.zoneCount) {
$.ajax({
url: createURL('listCapacity'),
data: {
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
},
success: function(json) {
var capacities = json.listcapacityresponse.capacity;