summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/forms/EventAdd.php1
-rw-r--r--application/forms/EventEdit.php7
2 files changed, 5 insertions, 3 deletions
diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php
index d225a41..ccc1d87 100644
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -83,6 +83,7 @@ class Application_Form_EventAdd extends Zend_Form
));
$this->addElement('checkbox', 'repeat', array(
+ 'onchange' => 'changeRepeatEnd("repeat")',
'required' => false,
'label' => 'Repeat:',
'value'=>array(0,1),
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index 658e3fa..2a93a31 100644
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -114,9 +114,10 @@ class Application_Form_EventEdit extends Zend_Form
));
} else {
$this->addElement('checkbox', 'repeat', array(
- 'required' => false,
- 'label' => 'Repeat:',
- 'value'=>array(0,1),
+ 'onchange' => 'changeRepeatEnd("repeat")',
+ 'required' => false,
+ 'label' => 'Repeat:',
+ 'value'=>array(0,1),
));
}