cloudstack 3.0 UI - Host page - detail view - implement Refresh button.

This commit is contained in:
Jessica Wang 2012-04-10 16:22:36 -07:00
parent 3c8a90d351
commit 36e8de0082
1 changed files with 13 additions and 6 deletions

View File

@ -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: {