cloudStack 3.0 new UI - NaaS - zone chart - widget include different parameter in args. Here is related UI change.

This commit is contained in:
Jessica Wang 2011-11-21 11:11:35 -08:00
parent ec3a00a230
commit 22619711e7
1 changed files with 13 additions and 16 deletions

View File

@ -3214,9 +3214,9 @@ fields: {
allocationstate: { label: 'Allocation Status' }
},
dataProvider: function(args) {
dataProvider: function(args) {
$.ajax({
url: createURL("listPods&zoneid=" + args.ref.zoneID + "&page=" + args.page + "&pagesize=" + pageSize),
url: createURL("listPods&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize),
dataType: "json",
async: true,
success: function(json) {
@ -3790,11 +3790,10 @@ fields: {
allocationstate: { label: 'Allocation State' },
managedstate: { label: 'Managed State' }
},
//dataProvider: testData.dataProvider.listView('clusters'),
dataProvider: function(args) {
dataProvider: function(args) {
$.ajax({
url: createURL("listClusters&zoneid=" + args.ref.zoneID + "&page=" + args.page + "&pagesize=" + pageSize),
url: createURL("listClusters&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize),
dataType: "json",
async: true,
success: function(json) {
@ -4369,11 +4368,10 @@ fields: {
podname: { label: 'Pod' },
clustername: { label: 'Cluster' }
},
//dataProvider: testData.dataProvider.listView('hosts'),
dataProvider: function(args) {
dataProvider: function(args) {
$.ajax({
url: createURL("listHosts&type=Routing&zoneid=" + args.ref.zoneID + "&page=" + args.page + "&pagesize=" + pageSize),
url: createURL("listHosts&type=Routing&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize),
dataType: "json",
async: true,
success: function(json) {
@ -5139,11 +5137,10 @@ fields: {
zonename: { label: 'Zone' },
podname: { label: 'Pod' }
},
//dataProvider: testData.dataProvider.listView('primaryStorage'),
dataProvider: function(args) {
dataProvider: function(args) {
$.ajax({
url: createURL("listStoragePools&zoneid=" + args.ref.zoneID + "&page=" + args.page + "&pagesize=" + pageSize),
url: createURL("listStoragePools&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize),
dataType: "json",
async: true,
success: function(json) {
@ -5838,9 +5835,9 @@ fields: {
zonename: { label: 'Zone' }
},
dataProvider: function(args) {
dataProvider: function(args) {
$.ajax({
url: createURL("listHosts&type=SecondaryStorage&zoneid=" + args.ref.zoneID + "&page=" + args.page + "&pagesize=" + pageSize),
url: createURL("listHosts&type=SecondaryStorage&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize),
dataType: "json",
async: true,
success: function(json) {