From 36e8de00820017342dcbcd3c0ba1e3dd71363199 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 10 Apr 2012 16:22:36 -0700 Subject: [PATCH] cloudstack 3.0 UI - Host page - detail view - implement Refresh button. --- ui/scripts/system.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 11781a15999..2f9be32e2f8 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6049,13 +6049,20 @@ } ], - dataProvider: function(args) { - args.response.success({ - actionFilter: hostActionfilter, - data: args.context.hosts[0] - }); + dataProvider: function(args) { + $.ajax({ + url: createURL("listHosts&id=" + args.context.hosts[0].id), + dataType: "json", + async: true, + success: function(json) { + var item = json.listhostsresponse.host[0]; + args.response.success({ + actionFilter: hostActionfilter, + data: item + }); + } + }); } - }, stats: {