Merge branch 'Fix_dolGetButtonAction' of github.com:atm-GregM/dolibarr into updateButtonsGregM
This commit is contained in:
commit
c1c9682d08
@ -10110,6 +10110,7 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
|
|||||||
$attr['id'] = $id;
|
$attr['id'] = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Override attr
|
// Override attr
|
||||||
if (!empty($params['attr']) && is_array($params['attr'])) {
|
if (!empty($params['attr']) && is_array($params['attr'])) {
|
||||||
foreach ($params['attr'] as $key => $value) {
|
foreach ($params['attr'] as $key => $value) {
|
||||||
@ -10123,6 +10124,11 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// automatic add tooltip when title is detected
|
||||||
|
if (!empty($attr['title']) && !empty($attr['class']) && strpos($attr['class'], 'classfortooltip') === false) {
|
||||||
|
$attr['class'].= ' classfortooltip';
|
||||||
|
}
|
||||||
|
|
||||||
// Js Confirm button
|
// Js Confirm button
|
||||||
if ($userRight && !empty($params['confirm'])) {
|
if ($userRight && !empty($params['confirm'])) {
|
||||||
if (!is_array($params['confirm'])) {
|
if (!is_array($params['confirm'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user