forked from Wavyzz/dolibarr
Fix: tons of bugs into ecm module
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
if(jQuery) (function($){
|
||||
|
||||
$.extend($.fn, {
|
||||
fileTree: function(o, h) {
|
||||
fileTree: function(o, h, hd) { // CHANGE DOL_LDR add hd param
|
||||
// Defaults
|
||||
if( !o ) var o = {};
|
||||
if( o.root == undefined ) o.root = '/';
|
||||
@@ -77,6 +77,8 @@ if(jQuery) (function($){
|
||||
$(this).parent().find('UL').slideUp({ duration: o.collapseSpeed, easing: o.collapseEasing });
|
||||
$(this).parent().removeClass('expanded').addClass('collapsed');
|
||||
}
|
||||
// CHANGE DOL_LDR use hd function provided in param
|
||||
if (hd != null) hd($(this));
|
||||
} else {
|
||||
h($(this).attr('rel'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user