Merge branch 'Fix_dolGetButtonAction' of github.com:atm-GregM/dolibarr into updateButtonsGregM
This commit is contained in:
commit
6a8b20b3c0
@ -9954,7 +9954,7 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
|
|||||||
$class = 'butAction';
|
$class = 'butAction';
|
||||||
if ($actionType == 'danger' || $actionType == 'delete') {
|
if ($actionType == 'danger' || $actionType == 'delete') {
|
||||||
$class = 'butActionDelete';
|
$class = 'butActionDelete';
|
||||||
if (strpos($url, 'token=') === false) $url .= '&token='.newToken();
|
if (!empty($url) && strpos($url, 'token=') === false) $url .= '&token='.newToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
$attr = array(
|
$attr = array(
|
||||||
@ -9965,6 +9965,7 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
|
|||||||
|
|
||||||
if (empty($html)) {
|
if (empty($html)) {
|
||||||
$html = $label;
|
$html = $label;
|
||||||
|
$attr['title'] = ''; // if html not set, leave label on title is redundant
|
||||||
} else {
|
} else {
|
||||||
$attr['aria-label'] = $label;
|
$attr['aria-label'] = $label;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user