mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
confirm-message in onchange got not translated
This commit is contained in:
parent
52f467b963
commit
76ff2ee6d1
@ -871,6 +871,11 @@
|
||||
{
|
||||
$cell['onchange'] = $this->expand_name($cell['onchange'],$show_c,$show_row,$content['.c'],$content['.row'],$content);
|
||||
}
|
||||
if (preg_match('/confirm\(["\']{1}(.*)["\']{1}\)/',$cell['onchange'],$matches))
|
||||
{
|
||||
$cell['onchange'] = preg_replace('/confirm\(["\']{1}(.*)["\']{1}\)/',
|
||||
'confirm(\''.addslashes(lang($matches[1])).'\')',$cell['onchange']);
|
||||
}
|
||||
$options .= ' onChange="'.($cell['onchange']=='1'?'this.form.submit();':$cell['onchange']).'"';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user