CC-3714: Create show with start time as 0xx:xx will freeze the browser
-fixed
This commit is contained in:
parent
63a5f45e9b
commit
bf96207849
|
@ -32,8 +32,8 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
|
||||||
->setValidators(array(
|
->setValidators(array(
|
||||||
'NotEmpty',
|
'NotEmpty',
|
||||||
array('date', false, array('HH:mm')),
|
array('date', false, array('HH:mm')),
|
||||||
array('regex', false, array('/^[0-9:]+$/', 'messages' => 'Invalid character entered'))))
|
array('regex', false, array('/^[0-2][0-3]:[0-5][0-9]$/', 'messages' => 'Time format should be HH:mm'))
|
||||||
->setDecorators(array('ViewHelper'));
|
))->setDecorators(array('ViewHelper'));
|
||||||
$startTime->setAttrib('alt', 'time');
|
$startTime->setAttrib('alt', 'time');
|
||||||
$this->addElement($startTime);
|
$this->addElement($startTime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue