mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-22 06:57:12 +01:00
refacotring validators.
This commit is contained in:
@@ -152,7 +152,7 @@ if(value>{$this->max}) {
|
||||
";
|
||||
}
|
||||
|
||||
if ($this->allowEmpty) {
|
||||
if ($this->skipOnEmpty) {
|
||||
$js = "
|
||||
if(jQuery.trim(value)!='') {
|
||||
$js
|
||||
|
||||
Reference in New Issue
Block a user