From e08e3779dfb6c3f673d0a40cab7d8122bdb882e1 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 10 Apr 2012 16:41:18 -0700 Subject: [PATCH] cloudstack 3.0 UI - Primary Storage 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 e7fe2a3382e..45134654389 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6744,13 +6744,20 @@ } ], - dataProvider: function(args) { - args.response.success({ - actionFilter: primarystorageActionfilter, - data: args.context.primarystorages[0] - }); + dataProvider: function(args) { + $.ajax({ + url: createURL("listStoragePools&id=" + args.context.primarystorages[0].id), + dataType: "json", + async: true, + success: function(json) { + var item = json.liststoragepoolsresponse.storagepool[0]; + args.response.success({ + actionFilter: primarystorageActionfilter, + data:item + }); + } + }); } - } } }