use js_pseudo_func also for onclick

This commit is contained in:
Ralf Becker 2006-12-19 13:36:54 +00:00
parent 7e9852a028
commit 5bc9ca3a7d

View File

@ -669,7 +669,7 @@
// can only be set via source at the moment // can only be set via source at the moment
if (strlen($cell['onclick']) > 1 && $cell['type'] != 'button') if (strlen($cell['onclick']) > 1 && $cell['type'] != 'button')
{ {
$row_data[".$col"] .= ' onclick="'.$cell['onclick'].'"' . $row_data[".$col"] .= ' onclick="'.$this->js_pseudo_funcs($cell['onclick'],$cname).'"' .
($cell['id'] ? ' id="'.$cell['id'].'"' : ''); ($cell['id'] ? ' id="'.$cell['id'].'"' : '');
} }
$colspan = $span == 'all' ? $this->cols-$c : 0+$span; $colspan = $span == 'all' ? $this->cols-$c : 0+$span;
@ -1396,7 +1396,7 @@
// can only be set via source at the moment // can only be set via source at the moment
if (strlen($cell[$n]['onclick']) > 1 && $cell[$n]['type'] != 'button') if (strlen($cell[$n]['onclick']) > 1 && $cell[$n]['type'] != 'button')
{ {
$rows[$box_row]['.'.$box_col] .= ' onclick="'.$cell[$n]['onclick'].'"'. $rows[$box_row]['.'.$box_col] .= ' onclick="'.$this->js_pseudo_funcs($cell[$n]['onclick'],$cname).'"'.
($cell[$n]['id'] ? ' id="'.$cell[$n]['id'].'"' : ''); ($cell[$n]['id'] ? ' id="'.$cell[$n]['id'].'"' : '');
} }
// allow to set further attributes in the tablecell, beside the class // allow to set further attributes in the tablecell, beside the class