Mikk Tendermann
c009b06114
Fixes #14604 : Fixed `yii\validators\CompareValidator` `compareAttribute` does not work if `compareAttribute` form ID has been changed
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
a132ee9a08
Fixed order or checks in IpValidator
...
Fixes #13198
8 years ago
Alexey Rogachev
8ea1f510af
Implemented Javascript test suite
...
fixes #12840
Used @nkovacs draft as starting
point(https://github.com/yiisoft/yii2/issues/11037#issuecomment-193356450 ).
I also fixed some bugs in `yii.validation.js` and did some refactoring.
Implemented tests:
- yii.validation.js
Running tests:
- Install Node.js. I used the latest version available at the moment -
`v7.1.0`. Note that used `jsdom` dependent library version requires
`Node.js >= 4`.
- Run `npm install` to install dependencies.
- Execute `npm test` for running tests.
8 years ago
SilverFire - Dmitry Naumenko
6f4c52a53d
Simplified Regex usage in JS
...
Follows 70752b0fc1
8 years ago
Alexey Rogachev
70752b0fc1
Fixes #11037 : yii.js and yii.validation.js should use Regexp.test instead of String.match ( #12839 )
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Oleg Poludnenko
b9eb09b8b5
Set attribute $form as a scope for selector
8 years ago
SilverFire - Dmitry Naumenko
7aef671872
Refactored FileHelper::validateMimeType, js validaton, PHPDocs
9 years ago
kirSeNN
a4c68b5278
#5469 added mimetype mask validation feature
9 years ago
SilverFire - Dmitry Naumenko
b804dbb98f
IpValidator JS validation: wrongIp->message renamed
9 years ago
SilverFire - Dmitry Naumenko
4c31c26628
EmailValidator - the name of the mailbox is no longer limited with the length
9 years ago
Andrey Klochok
4a0d7b3676
Fixed client-side IP validator
9 years ago
SilverFire - Dima Naumenko
bf6b50f58e
#10142 Fixed EmailValidator to check email length properly
9 years ago
Alexander Makarov
5242765257
Fixes #3506 : Added `\yii\validators\IpValidator` to perform validation of IP addresses and subnets
9 years ago
Alexander Makarov
fbce0c0450
Fixes #9591 : Fixed `yii.validation.js` code so it is compressable by YUICompressor
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Nikola Kovacs
f64d00bdf0
Fix client-side trim validator.
...
Subsequent validators now use the trimmed value instead of the original value.
fixes #7707
10 years ago
CthulhuDen
dad47b433e
do not extra convert to floats in CompareValidator client code
10 years ago
Qiang Xue
57c298a523
Fixes #7361 : The `trim` validator now works on the client side too
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Tomek Romik
daddc61e7b
Add File API detection to client file validator
...
Fixes #6345
10 years ago
Qiang Xue
72a81b8e31
Fixes #3581 : Added `yii\validators\CompareValidator::type` to support type conversion before comparing values
10 years ago
Qiang Xue
3f9d590dbe
minor fix [skip ci]
10 years ago
Qiang Xue
f0fefbb609
renamed function name [skip ci]
10 years ago
Qiang Xue
6dd2203a5c
Fixes #4566 : Added client validation support for image validator
10 years ago
Tomek Romik
87f58e4859
Abort further validation if there are no files to validate
10 years ago
Tomek Romik
8c5c4c503b
Fix lines
10 years ago
Tomek Romik
ed3564c1cf
Added client-side image validation
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Qiang Xue
95460f92b2
Fixes #4360 : Added client validation support for file validator
10 years ago
Tomek Romik
1a3a266fcd
Changed Array.prototype.slice.call() into jQuery's $.each function for consistency
10 years ago
Tomek Romik
b3f0f7dceb
Fixed typo and inconsistent conditionals
10 years ago
Tomek Romik
d1c2b137b3
Added client-side file validator
10 years ago
Alexander Kochetov
d3dd1352b9
RangeValidator typo fix
10 years ago
Alexander Kochetov
12a143bdac
RangeValidator client side type conversion to array
11 years ago
Alexander Kochetov
a4e8829717
Additional RangeValidator fixes
11 years ago
Alexander Kochetov
b1ba2439a6
[WIP] Additional RangeValidator fixes
11 years ago
Marius Kubrakov
1182ba5e45
Fixes #3368 value also has to be parsed.
11 years ago
Marius Kubrakov
a2bf04b084
Fix for comparing numeric attributes in JavaScript
11 years ago
Marius Kubrakov
b014a7bd09
Fix for comparing numeric attributes in JavaScript
11 years ago
Sergeygithub
dd4464d670
Update yii.validation.js
...
Если длина строки не проходит валидацию, то выводим сообщение об этом, а не длину.))
11 years ago
Qiang Xue
7960ccdf50
Tab to spaces conversion.
11 years ago
Qiang Xue
da48b37856
Fixes #2756 : Added support for injecting custom `isEmpty` check for all validators
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Carsten Brandt
8dab87be3d
fixed EmailValidator IDN and full pattern support
...
also made everything conistent with client validation
11 years ago
Carsten Brandt
266f4f9843
Clientvalidation {value} was not what has been validated
...
also fixed some inconsistency between client and server validation.
11 years ago
Carsten Brandt
280727408f
fixed wrong usage of $.inArray in validators
...
fixes #448
11 years ago
Qiang Xue
f72105166c
reorganized the main repo to satisfy PSR-0.
12 years ago
resurtm
e70c98f977
Email validator regexp typo fix.
12 years ago