2
0
forked from Wavyzz/dolibarr

Fix: tons of bugs into ecm module

This commit is contained in:
Laurent Destailleur
2013-11-17 02:59:01 +01:00
parent 33d55faf6b
commit 0f4ceca8ec
6 changed files with 92 additions and 52 deletions

View File

@@ -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'));
}