Better behavior for tooltip on click
This commit is contained in:
parent
c7d736376f
commit
7d5b5cf86a
@ -492,10 +492,11 @@ class Form
|
|||||||
*/
|
*/
|
||||||
function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0, $notabs = 2, $tooltiptrigger='')
|
function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0, $notabs = 2, $tooltiptrigger='')
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf, $langs;
|
||||||
|
|
||||||
$alt = '';
|
$alt = '';
|
||||||
|
if ($tooltiptrigger) $alt=$langs->trans("ClickToShowHelp");
|
||||||
|
|
||||||
//For backwards compatibility
|
//For backwards compatibility
|
||||||
if ($type == '0') $type = 'info';
|
if ($type == '0') $type = 'info';
|
||||||
elseif ($type == '1') $type = 'help';
|
elseif ($type == '1') $type = 'help';
|
||||||
|
|||||||
@ -766,6 +766,9 @@ Download=Download
|
|||||||
ActualizeCurrency=Update currency rate
|
ActualizeCurrency=Update currency rate
|
||||||
Fiscalyear=Fiscal year
|
Fiscalyear=Fiscal year
|
||||||
ModuleBuilder=Module Builder
|
ModuleBuilder=Module Builder
|
||||||
|
SetMultiCurrencyCode=Set currency
|
||||||
|
BulkActions=Bulk actions
|
||||||
|
ClickToShowHelp=Click to show tooltip help
|
||||||
# Week day
|
# Week day
|
||||||
Monday=Monday
|
Monday=Monday
|
||||||
Tuesday=Tuesday
|
Tuesday=Tuesday
|
||||||
@ -822,6 +825,4 @@ SearchIntoInterventions=Interventions
|
|||||||
SearchIntoContracts=Contracts
|
SearchIntoContracts=Contracts
|
||||||
SearchIntoCustomerShipments=Customer shipments
|
SearchIntoCustomerShipments=Customer shipments
|
||||||
SearchIntoExpenseReports=Expense reports
|
SearchIntoExpenseReports=Expense reports
|
||||||
SearchIntoLeaves=Leaves
|
SearchIntoLeaves=Leaves
|
||||||
SetMultiCurrencyCode=Set currency
|
|
||||||
BulkActions=Bulk actions
|
|
||||||
Loading…
Reference in New Issue
Block a user