onBeforeDeleteFile

fires when the Delete action is chosen in the popup menu

boolean onBeforeDeleteFile(string id){ ... };

Parameters

idstringthe id of the item to delete

Returns

booleanif an event handler returns false, the onBeforeDeleteFile handler will not be called

Example

$$("fmanager").attachEvent("onBeforeDeleteFile", function(id){
    // your code
});

Details

Returning false within the handler function will prevent the execution of the further logic and the file/folder will not be deleted.

See also
Back to top