mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
"rewriting onchange for checkboxes for IE to an onclick"
This commit is contained in:
parent
3c7dd9444b
commit
61cb3b0755
@ -1061,7 +1061,16 @@ class etemplate extends boetemplate
|
||||
}
|
||||
if ($cell['onchange'] && !($cell['type'] == 'button' || $cell['type'] == 'buttononly'))
|
||||
{
|
||||
$options .= ' onChange="'.($cell['onchange'] == '1' ? 'this.form.submit();' : $this->js_pseudo_funcs($cell['onchange'],$cname)).'"';
|
||||
$onchange = $cell['onchange'] == '1' ? 'this.form.submit();' : $this->js_pseudo_funcs($cell['onchange'],$cname);
|
||||
// rewriting onchange for checkboxes for IE to an onclick
|
||||
if ($cell['type'] == 'checkbox' && html::$user_agent == 'msie')
|
||||
{
|
||||
$options .= ' onClick="'.$onchange.'; return true;"';
|
||||
}
|
||||
else
|
||||
{
|
||||
$options .= ' onChange="'.$onchange.'"';
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($form_name != '')
|
||||
|
Loading…
Reference in New Issue
Block a user