FIX ajaxtooltip must return content with no html header/footer even for

error message
This commit is contained in:
Laurent Destailleur
2024-02-14 03:38:17 +01:00
parent a6ef430ca1
commit 21098dae23
3 changed files with 9 additions and 5 deletions

View File

@@ -96,12 +96,13 @@ if (empty($conf->dol_no_mouse_hover)) {
target.off("mouseover mouseout");
target.on("mouseover", function(event) {
console.log("we will create timer for ajax call");
event.stopImmediatePropagation();
clearTimeout(elemtostoretooltiptimer.data("openTimeoutId"));
var params = JSON.parse($(this).attr("data-params"));
params.token = currenttoken;
var elemfortooltip = $(this);
event.stopImmediatePropagation();
clearTimeout(elemtostoretooltiptimer.data("openTimeoutId"));
elemtostoretooltiptimer.data("openTimeoutId", setTimeout(function() {
target.tooltip("close");
$.ajax({