Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
Naomi Aro 2012-04-25 15:22:51 +02:00
commit 9b4c3efe8e
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
->setValidators(array(
'NotEmpty',
array('date', false, array('HH:mm')),
array('regex', false, array('/^[0-9:]+$/', 'messages' => 'Invalid character entered'))))
->setDecorators(array('ViewHelper'));
array('regex', false, array('/^[0-2][0-3]:[0-5][0-9]$/', 'messages' => 'Time format should be HH:mm'))
))->setDecorators(array('ViewHelper'));
$startTime->setAttrib('alt', 'time');
$this->addElement($startTime);