Fix add zone wizard dropping new row after creation

This commit is contained in:
Brian Federle 2011-11-16 11:27:24 -08:00
parent a7c0de3cf2
commit c535de7698
1 changed files with 10 additions and 2 deletions

View File

@ -893,7 +893,10 @@
async: false,
success: function(json) {
var zoneObj = json.createzoneresponse.zone;
args.response.success({data: zoneObj}); //spinning wheel appears from this moment
args.response.success({
data: zoneObj,
_custom: { zone: zoneObj }
}); //spinning wheel appears from this moment
zoneId = zoneObj.id;
//NaaS (begin)
@ -1099,7 +1102,12 @@
}
},
notification: {
poll: testData.notifications.testPoll
poll: function(args) {
args.complete({
actionFilter: zoneActionfilter,
data: args._custom.zone
});
}
}
},