Viktor
77ad6bc008
Fixes #15678 : Fixed `resetForm` method in `yii.activeForm.js` which used an undefined variable
7 years ago
Alexander Makarov
b3130be7ba
Fixes #15476 : Added `\yii\widgets\ActiveForm::$validationStateOn` to be able to specify where to add class for invalid fields
7 years ago
SilverFire - Dmitry Naumenko
70ad9f730b
Updated yii.activeForm to follow jQuery 3.0 API changes
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Alexey Rogachev
8f2d9baf98
Fixes #14186 , Fixes #14510 : yiiActiveForm regressions
...
- #14186 : Forced validation in `yiiActiveForm` do not trigger `afterValidate` event
- #14510 : The state of a form is always "not validated" when using forced validation in `yiiActiveForm`
7 years ago
Dmitry Dorogin
a731fd4142
Fixes #14318 : Trigger `yiiActiveForm.events.afterValidateAttribute` after updating attribute
7 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
SilverFire - Dmitry Naumenko
7d494c1915
Fixed unexpected form submit on `validate()` call
...
Fixed `validate()` method in `yii.activeForm.js` to prevent unexpected form submit
when `forceValidate` set to `true`
Closes #13105
8 years ago
Alexander Makarov
de4f518b94
More renaming
8 years ago
Alexander Makarov
dc294ba56f
Renamed variables, changed logic of turning client updates on
8 years ago
Alexander Makarov
b25ebaa782
Fixed formatting
8 years ago
Alexander Makarov
ed8acc8e03
#12399 adjustments
8 years ago
a.kompaniets
fb779e3ec6
Fixes #12399 : Added `ActiveField::addAriaAttributes` property for `aria-required` and `aria-invalid` attributes rendering
8 years ago
SilverFire - Dmitry Naumenko
0c33c9d075
Revert "Enhances ActiveForm with support for HTML5 attributes like formaction, formtarget and formmethod ( #8719 ) [ci-skip] ( #11999 )"
...
This reverts commit 3ba72da6fa
.
Fixes #12803
Fixes #12921
8 years ago
Māris Graudiņš
8f5b1fb3eb
Fixes #12790 : Added `scrollToErrorOffset` option for `ActiveForm` which adds ability to specify offset in pixels when scrolling to error
8 years ago
SilverFire - Dmitry Naumenko
6fa828805a
Force AJAX validation on form submit
...
When AJAX validation in enabled, `yii.activeForm.js` will run it forcefully on form submit to display all possible errors
Fixes #12499
8 years ago
werew01f
1bd13e233b
afterInit event for yiiActiveForm
...
https://github.com/yiisoft/yii2/issues/12744
8 years ago
SilverFire - Dmitry Naumenko
fc41a1c04b
Prevent reading property of undefined in `updateInputs()`
...
Closes #11352
8 years ago
Thyiad
8ff0480f2e
loop array should use forEach or for index < length
8 years ago
DrDeath72
0c288ea49e
Fixes #12376 : Added parameter to `yii.activeForm.js` `validate()` method to be able to force validation
8 years ago
Robbert Jan van de Velde
3ba72da6fa
Enhances ActiveForm with support for HTML5 attributes like formaction, formtarget and formmethod ( #8719 ) [ci-skip] ( #11999 )
...
* Enhances ActiveForm with support for HTML5 attributes like formaction, formtarget and formmethod (#8719 )
* Requested (format) changes by samdark
8 years ago
Anatoly Rugalev
fa5baf3275
[ #9989 ] Added support of formaction, formmethod and formenctype submit button attributes
8 years ago
SilverFire - Dmitry Naumenko
ffb121ba63
Reverted fix of beforeValidate event calling in `yii.activeForm.js`
8 years ago
SilverFire - Dmitry Naumenko
aaff45ebf1
Revert "Fixes #11972 : Fixed active form `afterValidate` wasn't triggered in some cases"
...
This reverts commit 8211dcc41b
.
8 years ago
lynicidn
8211dcc41b
Fixes #11972 : Fixed active form `afterValidate` wasn't triggered in some cases
8 years ago
lynicidn
e8bcb93507
Fixes #10681 : Fixed active form `beforeValidate` wasn't triggered in some cases
8 years ago
Oleg Poludnenko
251812f426
Pass $form to the attribute
8 years ago
AnatolyRugalev
59fdac54ff
Added support of :submit[formtarget]
9 years ago
SilverFire - Dmitry Naumenko
5686a9ddeb
Revert "* Added support of :submit[formtarget]"
...
This reverts commit d3fb217dfa
.
9 years ago
Anatoly Rugalev
d3fb217dfa
* Added support of :submit[formtarget]
...
* Added support of :submit[formtarget]
9 years ago
SilverFire - Dmitry Naumenko
e5bcbf4e1d
Closes #11228 : `yii.activeForm.js` - AJAX validation will not be triggered if client side validation failed
9 years ago
Andrew Nester
9eaa82e15d
10555 - Fix for ActiveForm - When previous action doesn't reload page, this action will be triggered again when another submit button clicked
9 years ago
githubjeka
88241f24f3
`yii.activeForm.js`: input onBlur event forces field validation
9 years ago
Sam
5332e900e3
Fixes #7341 , #9551 , #9928 : Client validation now skips disabled inputs
9 years ago
Nikola Kovacs
4c0bcaf12e
Fixes #8822 , fixes #9298 . Clientside validator docs enhancements.
9 years ago
Nikola Kovacs
11de09bf8b
Fixes #5991 , #5420 , #3017 : Added `updateMessages()` to `yii.activeForm.js` to support manually updating ActiveForm messages
9 years ago
Alexander Makarov
66557285a6
#7259 : fixed using errrorInputs
9 years ago
Alexander Makarov
9587d9b29c
#7259 : Added back errorAttributes
9 years ago
Alexander Makarov
e2f5279b54
Better fix for #7259
9 years ago
Nikola Kovacs
2577a5915b
Fixes #7259 : Added `errorAttributes` parameter to ActiveForm `afterValidate` event. Made scrolling to first error optional
9 years ago
vbelogai
1d6a340534
Fixes #8161 : Fixed active form `data-method` submit bug when client validation is used
9 years ago
nkovacs
a99ae5b1ed
Fixes #8661 : Fixed `yii.activeForm.js` scrolling to top
9 years ago
Alexandr
75dd60ae4a
Update yii.activeForm.js
9 years ago
Alexander Makarov
926770b7d9
Changed usage of .prop() to .attr() in order to avoid issues when working with forms having input with names matching form properties. Related to #8014 .
10 years ago
Qiang Xue
3abc07d16c
Fixes #6642 : Fixed the bug that using confirmation dialog via `data-confirm` in an `ActiveForm` may cause the dialog to appear twice
10 years ago
Sidney Lins (slinstj, former sidtj)
41e5a8a83b
Fixes #6975 : Pressing arrows while focused in inputs of Active Form with `validateOnType` enabled no longer triggers validation
10 years ago
Qiang Xue
e56bf03130
Fixed test break.
10 years ago
Qiang Xue
57c298a523
Fixes #7361 : The `trim` validator now works on the client side too
10 years ago
Qiang Xue
770d65a052
Fixes #6361
10 years ago
Qiang Xue
4dcbe83aa6
Fixes #6361 : Added `validateAttribute()` to `yii.activeForm.js` to support manually triggering data validation of an input
10 years ago