How to handle delete of Vault file list


#1

The source below is the source used in DHTMLX 5 version & Vault 2.5 version.

myVault.attachEvent("onBeforeFileRemove", function(file){
	confirm("file delete?", function(result){
		if(result){
			if(!myVault.file_data[file.id]){
				return
			}
			myVault.file_data[file.id].file=null;
			myVault.file_data[file.id].name=null;
			myVault.file_data[file.id].size=null;
			myVault.file_data[file.id].state=null;
			myVault.file_data[file.id]=null;
			delete myVault.file_data[file.id];
			myVault._removeFileFromList(file.id);
		}
	});
	return false;
});

I’m trying to implement the same functionality in DHTMLX 7 version & Vault 4.0 version.
How should I implement it?