fires after successful data deletion
response | object | the JSON object with details of the server side response |
id | id | the old ID of the related item |
details | object | the object that holds the state of data saving |
dp.attachEvent("onAfterDelete", function(response, id, object){
//... some code here ...
});
1 . The response parameter is a server response that contain id, status and other properties, e.g.:
2 . The id parameter is the item ID.
3 . The details parameter contains operation details, namely:
Will not fire for "error" or "invalid" responses.
//for such response
{ id:"123", status:"custom" }
//the onAfterCustom event will be called