store\components\validators\NumberValidator::clientValidateAttribute PHP Method

clientValidateAttribute() public method

public clientValidateAttribute ( CModel $object, string $attribute ) : string | void
$object CModel
$attribute string
return string | void
    public function clientValidateAttribute($object, $attribute)
    {
        $js = parent::clientValidateAttribute($object, $attribute);
        if ($this->replacingCommas === true) {
            $js = 'value = value.replace(/,/g, "."); ' . $js;
        }
        return $js;
    }