mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix tooltip ajax
This commit is contained in:
parent
4faeea1476
commit
78bd96dd58
|
|
@ -1624,6 +1624,8 @@ class Categorie extends CommonObject
|
|||
{
|
||||
global $langs;
|
||||
|
||||
$langs->load('categories');
|
||||
|
||||
$datas = [];
|
||||
|
||||
$datas['label'] = $langs->trans("ShowCategory").': '.($this->ref ? $this->ref : $this->label);
|
||||
|
|
@ -1656,7 +1658,6 @@ class Categorie extends CommonObject
|
|||
if (getDolGlobalInt('MAIN_ENABLE_AJAX_TOOLTIP')) {
|
||||
$classfortooltip = 'classforajaxtooltip';
|
||||
$dataparams = ' data-params='.json_encode($params);
|
||||
// $label = $langs->trans('Loading');
|
||||
}
|
||||
$label = implode($this->getTooltipContentArray($params));
|
||||
|
||||
|
|
|
|||
|
|
@ -11249,6 +11249,10 @@ function getElementProperties($element_type)
|
|||
$module = 'banque';
|
||||
$classfile = 'Account';
|
||||
$classname = 'Account';
|
||||
} elseif ($element_type == 'category') {
|
||||
$classpath = 'categories/class';
|
||||
$module = 'categorie';
|
||||
$subelement = 'categorie';
|
||||
} elseif ($element_type == 'stock') {
|
||||
$classpath = 'product/stock/class';
|
||||
$classfile = 'entrepot';
|
||||
|
|
@ -11272,6 +11276,10 @@ function getElementProperties($element_type)
|
|||
$classpath = 'comm/propal/class';
|
||||
} elseif ($element_type == 'supplier_proposal') {
|
||||
$classpath = 'supplier_proposal/class';
|
||||
$module = 'supplier_proposal';
|
||||
$element = 'supplierproposal';
|
||||
$classfile = 'supplier_proposal';
|
||||
$subelement = 'supplierproposal';
|
||||
} elseif ($element_type == 'shipping') {
|
||||
$classpath = 'expedition/class';
|
||||
$subelement = 'expedition';
|
||||
|
|
|
|||
|
|
@ -2477,6 +2477,9 @@ class SupplierProposal extends CommonObject
|
|||
public function getTooltipContentArray($params)
|
||||
{
|
||||
global $conf, $langs, $menumanager;
|
||||
|
||||
$langs->load('supplier_proposal');
|
||||
|
||||
if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
||||
return ['optimize' => $langs->trans("ShowSupplierProposal")];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user