cloudstack 3.0 new UI - (1) apply action filter to newly created primary storage in listView. (2) apply action filter to newly created secondary storage in listView.

This commit is contained in:
Jessica Wang 2011-12-29 17:00:39 -08:00
parent 37e7c3d125
commit bec829e12a
1 changed files with 10 additions and 4 deletions

View File

@ -7509,8 +7509,11 @@
url: createURL("createStoragePool" + array1.join("")),
dataType: "json",
success: function(json) {
var item = json.createstoragepoolresponse.storagepool[0];
args.response.success({data: item});
var item = json.createstoragepoolresponse.storagepool[0];
args.response.success({
actionFilter: primarystorageActionfilter, //Brian, actionfilter is not being applied here. Please fix widget code to apply actionFilter to the newly created object.
data: item
});
},
error: function(XMLHttpResponse) {
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
@ -7906,8 +7909,11 @@
url: createURL("addSecondaryStorage&zoneId=" + zoneId + "&url=" + todb(url)),
dataType: "json",
success: function(json) {
var item = json.addsecondarystorageresponse.secondarystorage;
args.response.success({data:item});
var item = json.addsecondarystorageresponse.secondarystorage;
args.response.success({
actionFilter: secondarystorageActionfilter, //Brian, actionfilter is not being applied here. Please fix widget code to apply actionFilter to the newly created object.
data:item
});
},
error: function(XMLHttpResponse) {
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);