From b6eae2855f9950afec1cae95f12e66ea6b15abe9 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 10 Apr 2012 16:56:52 -0700 Subject: [PATCH] cloudstack 3.0 UI - Secondary Storage 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 9a9c7f6b011..acafd3e77fb 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6910,11 +6910,19 @@ } ], - dataProvider: function(args) { - args.response.success({ - actionFilter: secondarystorageActionfilter, - data: args.context.secondarystorages[0] - }); + dataProvider: function(args) { + $.ajax({ + url: createURL("listHosts&type=SecondaryStorage&id=" + args.context.secondarystorages[0].id), + dataType: "json", + async: true, + success: function(json) { + var item = json.listhostsresponse.host[0]; + args.response.success({ + actionFilter: secondarystorageActionfilter, + data:item + }); + } + }); } } }