onBeforeEditFile

fires when the Rename action is chosen in the popup menu, but before editing started

void onBeforeEditFile(string|number id){ ... };

Parameters

idstring|numberthe id of the edited item

Example

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

Related samples

Details

Returning false within the handler function will prevent the execution of the further logic and the related editor will not be opened.

See also
Back to top