diff options
Diffstat (limited to 'frontends/php/include/classes/ccheckbox.inc.php')
| -rw-r--r-- | frontends/php/include/classes/ccheckbox.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/classes/ccheckbox.inc.php b/frontends/php/include/classes/ccheckbox.inc.php index 526ceedf..2d616da8 100644 --- a/frontends/php/include/classes/ccheckbox.inc.php +++ b/frontends/php/include/classes/ccheckbox.inc.php @@ -29,7 +29,7 @@ $this->options['type'] = 'checkbox'; $this->options['value'] = $value; $this->options['name'] = $name; - $this->options['onClick'] = $action; + $this->SetAction($action); $this->SetChecked($checked); } function SetEnabled($value='yes') @@ -49,7 +49,7 @@ } function SetAction($value='submit()', $event='onClick') { - $this->options[$event] = $value; + $this->AddAction('onClick', $value); } } |
