77ad6bc008
Fixes #15678 : Fixed resetForm
method in yii.activeForm.js
which used an undefined variable
2018-02-23 12:58:47 +03:00
b3130be7ba
Fixes #15476 : Added \yii\widgets\ActiveForm::$validationStateOn
to be able to specify where to add class for invalid fields
2018-01-31 03:03:21 +07:00
70ad9f730b
Updated yii.activeForm to follow jQuery 3.0 API changes
2017-09-09 14:59:02 +03:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
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`
2017-07-29 14:37:29 +03:00
a731fd4142
Fixes #14318 : Trigger yiiActiveForm.events.afterValidateAttribute
after updating attribute
2017-07-24 23:25:47 +03:00
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
2017-02-19 17:34:22 +03:00
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
2016-12-11 21:05:16 +02:00
de4f518b94
More renaming
2016-12-02 14:38:44 +03:00
dc294ba56f
Renamed variables, changed logic of turning client updates on
2016-12-02 14:30:13 +03:00
b25ebaa782
Fixed formatting
2016-12-02 13:11:34 +03:00
ed8acc8e03
#12399 adjustments
2016-12-02 01:44:57 +03:00
fb779e3ec6
Fixes #12399 : Added ActiveField::addAriaAttributes
property for aria-required
and aria-invalid
attributes rendering
2016-12-02 01:44:34 +03:00
0c33c9d075
Revert "Enhances ActiveForm with support for HTML5 attributes like formaction, formtarget and formmethod ( #8719 ) [ci-skip] ( #11999 )"
...
This reverts commit 3ba72da6fa11c7565de7ceb002bdf6ff86c841d4.
Fixes #12803
Fixes #12921
2016-11-05 20:48:48 +02:00
8f5b1fb3eb
Fixes #12790 : Added scrollToErrorOffset
option for ActiveForm
which adds ability to specify offset in pixels when scrolling to error
2016-10-21 01:06:37 +03:00
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
2016-10-16 12:37:59 +03:00
1bd13e233b
afterInit event for yiiActiveForm
...
https://github.com/yiisoft/yii2/issues/12744
2016-10-14 17:17:56 +03:00
fc41a1c04b
Prevent reading property of undefined in updateInputs()
...
Closes #11352
2016-09-30 10:42:46 +03:00
8ff0480f2e
loop array should use forEach or for index < length
2016-09-23 10:17:15 +08:00
0c288ea49e
Fixes #12376 : Added parameter to yii.activeForm.js
validate()
method to be able to force validation
2016-09-20 22:51:45 +02:00
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
2016-09-16 22:53:24 +02:00
fa5baf3275
[ #9989 ] Added support of formaction, formmethod and formenctype submit button attributes
2016-08-25 20:25:05 +03:00
834f77ec13
Merge pull request #11715 from uaoleg/patch-4
...
Fix scope for multiple forms file inputs
2016-08-05 17:26:08 +03:00
ffb121ba63
Reverted fix of beforeValidate event calling in yii.activeForm.js
2016-08-03 09:04:37 +03:00
aaff45ebf1
Revert "Fixes #11972 : Fixed active form afterValidate
wasn't triggered in some cases"
...
This reverts commit 8211dcc41bef562cbb3249f89f97a3cee72310d5.
2016-07-28 13:13:09 +03:00
8211dcc41b
Fixes #11972 : Fixed active form afterValidate
wasn't triggered in some cases
2016-07-21 18:19:13 +03:00
e8bcb93507
Fixes #10681 : Fixed active form beforeValidate
wasn't triggered in some cases
2016-07-02 01:59:02 +03:00
251812f426
Pass $form to the attribute
2016-06-07 13:17:53 +03:00
59fdac54ff
Added support of :submit[formtarget]
2016-04-25 23:57:56 +03:00
5686a9ddeb
Revert "* Added support of :submit[formtarget]"
...
This reverts commit d3fb217dfa3f1418058b7f9b393aaef59219e5fe.
2016-04-22 13:46:46 +03:00
d3fb217dfa
* Added support of :submit[formtarget]
...
* Added support of :submit[formtarget]
2016-04-21 23:58:36 +03:00
e5bcbf4e1d
Closes #11228 : yii.activeForm.js
- AJAX validation will not be triggered if client side validation failed
2016-04-06 23:53:52 +03:00
9eaa82e15d
10555 - Fix for ActiveForm - When previous action doesn't reload page, this action will be triggered again when another submit button clicked
2016-01-20 13:08:26 +03:00
88241f24f3
yii.activeForm.js
: input onBlur event forces field validation
2015-12-02 23:38:00 +02:00
5332e900e3
Fixes #7341 , #9551 , #9928 : Client validation now skips disabled inputs
2015-10-15 12:46:26 +03:00
4c0bcaf12e
Fixes #8822 , fixes #9298 . Clientside validator docs enhancements.
2015-09-05 02:15:08 +03:00
11de09bf8b
Fixes #5991 , #5420 , #3017 : Added updateMessages()
to yii.activeForm.js
to support manually updating ActiveForm messages
2015-08-02 19:39:12 +03:00
66557285a6
#7259 : fixed using errrorInputs
2015-08-02 14:32:49 +03:00
9587d9b29c
#7259 : Added back errorAttributes
2015-08-02 13:40:22 +03:00
e2f5279b54
Better fix for #7259
2015-08-02 13:30:53 +03:00
2577a5915b
Fixes #7259 : Added errorAttributes
parameter to ActiveForm afterValidate
event. Made scrolling to first error optional
2015-08-02 12:58:35 +03:00
1d6a340534
Fixes #8161 : Fixed active form data-method
submit bug when client validation is used
2015-07-27 18:53:40 +03:00
7a32272fe1
Merge pull request #8721 from ShNURoK42/patch-1
...
Update yii.activeForm.js [skip ci]
2015-06-11 11:41:05 +02:00
a99ae5b1ed
Fixes #8661 : Fixed yii.activeForm.js
scrolling to top
2015-06-11 11:37:19 +02:00
75dd60ae4a
Update yii.activeForm.js
2015-06-09 19:10:53 +07:00
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 .
2015-04-09 23:06:47 +03:00
3abc07d16c
Fixes #6642 : Fixed the bug that using confirmation dialog via data-confirm
in an ActiveForm
may cause the dialog to appear twice
2015-03-29 12:01:24 -04:00
41e5a8a83b
Fixes #6975 : Pressing arrows while focused in inputs of Active Form with validateOnType
enabled no longer triggers validation
2015-03-21 15:52:44 +03:00
e56bf03130
Fixed test break.
2015-02-22 19:33:23 -05:00
57c298a523
Fixes #7361 : The trim
validator now works on the client side too
2015-02-22 19:25:06 -05:00