CC-3761 : Calendar->Update Show:Try to input wrong number of Colour, Browser hangs
This commit is contained in:
parent
41e7150462
commit
1cc84c1c85
|
@ -19,6 +19,12 @@ class Application_Form_AddShowStyle extends Zend_Form_SubForm
|
||||||
'class' => 'big'
|
'class' => 'big'
|
||||||
))));
|
))));
|
||||||
|
|
||||||
|
$bg->setValidators(array(
|
||||||
|
'Hex',
|
||||||
|
array('stringLength', false, array(6, 6))
|
||||||
|
));
|
||||||
|
|
||||||
|
|
||||||
// Add show color input
|
// Add show color input
|
||||||
$this->addElement('text', 'add_show_color', array(
|
$this->addElement('text', 'add_show_color', array(
|
||||||
'label' => 'Text Colour:',
|
'label' => 'Text Colour:',
|
||||||
|
@ -32,6 +38,11 @@ class Application_Form_AddShowStyle extends Zend_Form_SubForm
|
||||||
'viewScript' => 'form/add-show-style.phtml',
|
'viewScript' => 'form/add-show-style.phtml',
|
||||||
'class' => 'big'
|
'class' => 'big'
|
||||||
))));
|
))));
|
||||||
|
|
||||||
|
$c->setValidators(array(
|
||||||
|
'Hex',
|
||||||
|
array('stringLength', false, array(6, 6))
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function disable(){
|
public function disable(){
|
||||||
|
|
|
@ -1400,6 +1400,7 @@ ul.errors li {
|
||||||
background:#c6b4b4;
|
background:#c6b4b4;
|
||||||
margin-bottom:2px;
|
margin-bottom:2px;
|
||||||
border:1px solid #c83f3f;
|
border:1px solid #c83f3f;
|
||||||
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.success{
|
div.success{
|
||||||
|
|
Loading…
Reference in New Issue