confirm-message in onchange got not translated

This commit is contained in:
Ralf Becker 2006-04-22 12:54:36 +00:00
parent 52f467b963
commit 76ff2ee6d1

View File

@ -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']).'"';
}
}