mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Clean code
This commit is contained in:
parent
4ece4e58c5
commit
2d6a82a030
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)) : '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user