Hi,
the filemanager has a “onBeforeRun” event, which fires on doubleclick. How can i fire an event just on a single click?
Hi,
the filemanager has a “onBeforeRun” event, which fires on doubleclick. How can i fire an event just on a single click?
Okay, got it…
$$(“fmanager”).attachEvent(“onItemClick”,function(id){
});
My solution, to get only the clicks on files and directories:
$$("fmanager").attachEvent("onItemClick",function(id,e,node){
if($(node).hasClass('webix_tree_item') || $(node).hasClass('webix_cell') || $(node).hasClass('webix_fmanager_files')){
$.post("url",{id:id}, function( data ) {
$$("filemanager-details").show();
$$("filemanager-details").setHTML(data);
});
}else{
$$("filemanager-details").hide();
}
});
Tell me if there is a better solution.
An eventHandler like “onBeforeRun” would be nice… then i would not need this workarround.
How would this work in the new file manager?