Clean code

This commit is contained in:
Laurent Destailleur 2023-10-12 12:49:57 +02:00
parent 4ece4e58c5
commit 2d6a82a030
2 changed files with 5 additions and 3 deletions

View File

@ -70,20 +70,22 @@ jQuery(document).ready(function () {\n";
if (empty($conf->dol_no_mouse_hover)) {
print '
/* for standard tooltip */
jQuery(".classfortooltip").tooltip({
tooltipClass: "mytooltip",
show: { collision: "flipfit", effect:"toggle", delay:50, duration: 20 },
hide: { delay: 250, duration: 20 },
tooltipClass: "mytooltip",
content: function () {
console.log("Return title for popup");
return $(this).prop("title"); /* To force to get title as is */
}
});
var opendelay = 80;
var opendelay = 100;
var elemtostoretooltiptimer = jQuery("#dialogforpopup");
var currenttoken = jQuery("meta[name=anti-csrf-currenttoken]").attr("content");
/* for ajax tooltip */
target = jQuery(".classforajaxtooltip");
target.tooltip({
tooltipClass: "mytooltip",

View File

@ -5240,7 +5240,7 @@ class Product extends CommonObject
$result .= (img_object(($notooltip ? '' : $label), 'service', 'class="paddingright"', 0, 0, $notooltip ? 0 : 1));
}
}
$result .= dol_escape_htmltag($newref);
$result .= '<span class="aaa">'.dol_escape_htmltag($newref).'</span>';
$result .= $linkend;
if ($withpicto != 2) {
$result .= (($add_label && $this->label) ? $sep.dol_trunc($this->label, ($add_label > 1 ? $add_label : 0)) : '');