From 5283e5ece307511b6468b74e993c5ef37c349ca3 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 30 Nov 2011 17:35:48 -0800 Subject: [PATCH] cloudStack 3.0 new UI - naas - view clusters - pass podID to listClusters API if the previous page is pod detail page. --- ui/scripts/system.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 04fd6ef4a25..8e50d285127 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -5063,9 +5063,13 @@ managedstate: { label: 'Managed State' } }, - 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); $.ajax({ - url: createURL("listClusters&zoneid=" + args.context.zones[0].id + "&page=" + args.page + "&pagesize=" + pageSize), + url: createURL("listClusters" + array1.join("") + "&page=" + args.page + "&pagesize=" + pageSize), dataType: "json", async: true, success: function(json) {