diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php index 9d0908953c6..ae2f349a644 100644 --- a/htdocs/core/ajax/ajaxdirtree.php +++ b/htdocs/core/ajax/ajaxdirtree.php @@ -231,24 +231,18 @@ if (! empty($conf->use_javascript_ajax) && empty($conf->global->MAIN_ECM_DISABLE } // Enable jquery handlers on new generated HTML objects - print "\n\n"; + // Because the content is reloaded by ajax call, we must also reenable some jquery hooks + print "\n\n"; print ''; diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index d3b3db60ef8..f9ee9ea3ad4 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -52,7 +52,7 @@ if (empty($conf->dol_no_mouse_hover)) jQuery(document).ready(function () { jQuery(".classfortooltip").tooltip({ show: { collision: "flipfit", effect:\'toggle\', delay:50 }, - hide: { effect:\'toggle\', delay: 50 }, + hide: { delay: 50 }, tooltipClass: "mytooltip", content: function () { return $(this).prop(\'title\'); /* To force to get title as is */