From 17f95267301e846e08d3e2b492cbfa706d1cfed0 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 30 Nov 2011 18:04:41 -0800 Subject: [PATCH] cloudStack 3.0 new UI - naas - view secondary storages - pass podID, clusterID to listHosts API depending on what the previous page is. --- ui/scripts/system.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index a5be7a4b8ef..80b3b5468c5 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -7122,7 +7122,13 @@ zonename: { label: 'Zone' } }, - dataProvider: function(args) { + dataProvider: function(args) { + var array1 = []; + array1.push("&zoneid=" + args.context.zones[0].id); + if("pods" in args.context) + array1.push("&podid=" + args.context.pods[0].id); + if("clusters" in args.context) + array1.push("&clusterid=" + args.context.clusters[0].id); $.ajax({ url: createURL("listHosts&type=SecondaryStorage&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize), dataType: "json",