From 3ae0ecb0eb736bc243de27cfc50f8ea3c4eed900 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 859fa7adbb9..9a9c7f6b011 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6743,13 +6743,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 + }); + } + }); } - } } }