forked from Wavyzz/dolibarr
clean js
This commit is contained in:
@@ -2377,7 +2377,7 @@ class Adherent extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="' . uniqid('member') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip'.($morecss ? ' '.$morecss : '').'"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -752,7 +752,7 @@ class AdherentType extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkstart = '<a href="'.$url.'" data-params='.json_encode($params).' id="' . uniqid($this->element) . '" title="'.$langs->trans('Loading').'" class="classforajaxtooltip">';
|
||||
$linkstart = '<a href="'.$url.'" data-params='.json_encode($params).' title="'.$langs->trans('Loading').'" class="classforajaxtooltip">';
|
||||
} else {
|
||||
$linkstart = '<a href="'.$url.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
||||
}
|
||||
|
||||
@@ -1166,7 +1166,7 @@ class BOM extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="' . uniqid('bom') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip'.($morecss ? ' '.$morecss : '').'"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -1646,14 +1646,10 @@ class Categorie extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$link2 = $link;
|
||||
$link .= '" data-params='.json_encode($params).' id="' . uniqid('category') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$link .= '" data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$link .= ' class="classforajaxtooltip '.$forced_color.'">';
|
||||
$link2 .= '" data-params='.json_encode($params).' id="' . uniqid('category') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$link2 .= ' class="classforajaxtooltip '.$forced_color.'">';
|
||||
} else {
|
||||
$link .= '" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip '.$forced_color.'">';
|
||||
$link2 = $link;
|
||||
}
|
||||
$linkend = '</a>';
|
||||
|
||||
@@ -1667,7 +1663,7 @@ class Categorie extends CommonObject
|
||||
$result .= ' ';
|
||||
}
|
||||
if ($withpicto != 2) {
|
||||
$result .= $link2.dol_trunc(($this->ref ? $this->ref : $this->label), $maxlength).$linkend;
|
||||
$result .= $link.dol_trunc(($this->ref ? $this->ref : $this->label), $maxlength).$linkend;
|
||||
}
|
||||
global $action;
|
||||
$hookmanager->initHooks(array($this->element . 'dao'));
|
||||
|
||||
@@ -3820,7 +3820,7 @@ class Propal extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="propal-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -3843,7 +3843,7 @@ class Commande extends CommonOrder
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="order-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -1443,7 +1443,7 @@ class Account extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose = '" data-params='.json_encode($params).' id="' . uniqid('member') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose = '" data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip"';
|
||||
} else {
|
||||
$linkclose = '" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
||||
|
||||
@@ -1525,7 +1525,7 @@ class Contact extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="contact-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip'.($morecss ? ' '.$morecss : '').'"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -2082,7 +2082,7 @@ class Contrat extends CommonObject
|
||||
'id' => $this->id,
|
||||
'objecttype' => $this->element,
|
||||
];
|
||||
$linkclose .= '" data-params='.json_encode($params).' id="' . uniqid('contract') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= '" data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
@@ -3158,7 +3158,7 @@ class ContratLigne extends CommonObjectLine
|
||||
'id' => $this->fk_contrat,
|
||||
'objecttype' => $this->element,
|
||||
];
|
||||
$link .= '" data-params='.json_encode($params).' id="' . uniqid('contract') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$link .= '" data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$link .= ' class="classforajaxtooltip"';
|
||||
} else {
|
||||
$link = '" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -827,7 +827,7 @@ class MyObject extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="propal-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip'.($morecss ? ' '.$morecss : '').'"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -5231,7 +5231,7 @@ class Product extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="product-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="nowraponall classforajaxtooltip'.($morecss ? ' '.$morecss : '').'"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1, 1).'"';
|
||||
|
||||
@@ -2927,7 +2927,7 @@ class Societe extends CommonObject
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="' . uniqid('societe-') . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip refurl valignmiddle"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
@@ -2977,7 +2977,7 @@ class User extends CommonObject
|
||||
'infologin' => $infologin,
|
||||
'option' => $option,
|
||||
];
|
||||
$linkclose .= ' data-params='.json_encode($params).' id="user-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' data-params='.json_encode($params).' title="' . $langs->trans('Loading') . '"';
|
||||
$linkclose .= ' class="classforajaxtooltip'.($morecss ? ' '.$morecss : '').'"';
|
||||
} else {
|
||||
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|
||||
|
||||
Reference in New Issue
Block a user