Merge branch 'ent-7537-estado-transaccion-muestra-siempre-ok' into 'develop'

Added parameter onclick in anchors

Closes pandora_enterprise#7537

See merge request artica/pandorafms!4250
This commit is contained in:
Daniel Rodriguez 2021-08-05 08:30:27 +00:00
commit 874e35cc73
1 changed files with 3 additions and 1 deletions

View File

@ -2365,12 +2365,13 @@ function html_print_div(
/**
* Render an anchor <a> html element.
*
* @param array $options Parameters
* @param array $options Parameters.
* - id: string.
* - style: string.
* - title: string.
* - href: string.
* - content: string.
* - onClick: string.
* @param boolean $return Return or echo flag.
*
* @return string HTML code if return parameter is true.
@ -2387,6 +2388,7 @@ function html_print_anchor(
'style',
'class',
'title',
'onClick',
];
$output .= (isset($options['href']) === true) ? 'href="'.io_safe_input_html($options['href']).'"' : ui_get_full_url();