From bd7f16eb6558be80df100460a570bb72183d7ac4 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 10 Apr 2012 15:51:45 -0700 Subject: [PATCH] cloudstack 3.0 UI - Pod page - detail view - implement Refresh button. --- ui/scripts/system.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 09e0e5bb22e..7d01a434b79 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -4963,11 +4963,19 @@ } ], - dataProvider: function(args) { - args.response.success({ - actionFilter: podActionfilter, - data: args.context.pods[0] - }); + dataProvider: function(args) { + $.ajax({ + url: createURL("listPods&id=" + args.context.pods[0].id), + dataType: "json", + async: true, + success: function(json) { + var item = json.listpodsresponse.pod[0]; + args.response.success({ + actionFilter: podActionfilter, + data:item + }); + } + }); } },