diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php index 47de50d0fd8..edc2f0166e3 100644 --- a/htdocs/core/ajax/ajaxdirtree.php +++ b/htdocs/core/ajax/ajaxdirtree.php @@ -414,13 +414,15 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir, } print '
  • '; // collapsed is opposite if expanded - print '
    '; // Disabled, this break the javascrip component + print '"; print dol_escape_htmltag($file); - print "
    "; + print ''; + //print ''; print '
    '; diff --git a/htdocs/ecm/tpl/enablefiletreeajax.tpl.php b/htdocs/ecm/tpl/enablefiletreeajax.tpl.php index 1f5e52e4577..a7e601bf053 100644 --- a/htdocs/ecm/tpl/enablefiletreeajax.tpl.php +++ b/htdocs/ecm/tpl/enablefiletreeajax.tpl.php @@ -24,6 +24,7 @@ if (empty($conf) || !is_object($conf)) { print "Error, template enablefiletreeajax.tpl.php can't be called as URL"; exit; } +// Must have set $module, $nameforformuserfile, $preopened ?> @@ -57,7 +58,7 @@ $(document).ready(function() { multiFolder: false }, // Called if we click on a file (not a dir) function(file) { - console.log("We click on a file"); + console.log("We click on a file "+file); $("#mesg").hide(); loadandshowpreview(file,0); }, @@ -65,7 +66,7 @@ $(document).ready(function() { function(elem) { id=elem.attr('id').substr(12); // We get id that is 'fmdirlia_id_xxx' (id we want is xxx) rel=elem.attr('rel') - console.log("We click on a dir, we call the ajaxdirtree.php with modulepart=, param="); + console.log("We click on a dir id="+id+", we call the ajaxdirtree.php with modulepart=, param="); console.log("We also save id and dir name into _section_id|dir (vars into form to attach new file in filemanager.tpl.php) with id="+id+" and rel="+rel); jQuery("#_section_dir").val(rel); jQuery("#_section_id").val(id); diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index aaddf1e9c62..d8c3e1a4cf4 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -5889,6 +5889,11 @@ ul.ecmjqft a { padding: 0px 0px; font-weight:normal; display: inline-block !important; + + width: calc(100% - 100px); + overflow: hidden; + white-space: break-spaces; + word-break: break-all; } ul.ecmjqft a:active { font-weight: bold !important; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 687242d2451..100cda109d4 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -5722,6 +5722,11 @@ ul.ecmjqft a { padding: 0px 0px; font-weight:normal; display: inline-block !important; + + width: calc(100% - 100px); + overflow: hidden; + white-space: break-spaces; + word-break: break-all; } ul.ecmjqft a:active { font-weight: bold !important;