CC-3714: Create show with start time as 0xx:xx will freeze the browser

-fixed
This commit is contained in:
Martin Konecny 2012-04-25 09:19:15 -04:00
parent 63a5f45e9b
commit bf96207849
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);