This commit is contained in:
Frédéric FRANCE
2023-02-02 22:59:54 +01:00
parent ffa9e1e52f
commit 41dd574b16
14 changed files with 17 additions and 21 deletions

View File

@@ -84,7 +84,7 @@ if (empty($conf->dol_no_mouse_hover)) {
hide: { delay: 250, duration: 20 },
tooltipClass: "mytooltip",
open: function (event, ui) {
var id = $(this).attr("id");
var elem = $(this);
var params = $(this).attr("data-params");
$.ajax({
url:"' . dol_buildpath('/core/ajax/ajaxtooltip.php', 1) . '",
@@ -92,7 +92,7 @@ if (empty($conf->dol_no_mouse_hover)) {
data: JSON.parse(params),
success: function(response){
// Setting content option
$("#"+id).tooltip("option","content",response);
elem.tooltip("option","content",response);
}
});
console.log(event);