115 Commits

Author SHA1 Message Date
2152c00edb Fix #13920: Fixed erroneous validation for specific cases 2023-07-24 15:01:57 +02:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
17aa0e40c1 Fix #13105: Add yiiActiveForm validate_only property for skipping form auto-submission 2021-11-26 10:19:50 +03:00
7e323ba07c Fix #18650: Refactor framework/assets/yii.activeForm.js arrow function into traditional function for IE11 compatibility 2021-05-12 18:11:39 +03:00
2650948e87 Fix #18323: Fix client validation of RadioList when there are disabled items 2021-04-01 01:13:53 +03:00
47446a5a99 Fix #18386: Fix assets/yii.activeForm.js incorrect target selector for validatingCssClass 2020-11-23 23:07:40 +03:00
cf364f5e00 Fix #17147: Fix form attribute validations for empty select inputs 2020-08-04 19:47:40 +03:00
40fff67aa4 Fix #8225: Fixed AJAX validation with checkboxList was only triggered on first select 2019-10-22 12:32:41 +03:00
e6d7881bbe Fix #17341 Re-add fix for yii.activeForm.js in strict mode (#17398) 2019-06-27 14:44:13 +07:00
1f9131d841 Fixes #12080: Fixed afterValidate triggering when any validation occurs 2019-06-18 11:55:39 +03:00
3297f207f5 Fixes #17341: Fixed error from yii.activeForm.js in strict mode 2019-06-06 16:08:00 +02:00
dafaff0a02 Fixes #16158: Fix multiple select validation was trigged on other fields blur event 2019-03-20 20:09:34 +03:00
5544d31bb3 Fix #17049: Use var instead of let (#17055) 2019-01-21 15:21:47 +03:00
c59df914c1 Fixes #16253: Fixed empty checkboxlist validation 2019-01-10 09:17:37 -05:00
cfe0bf5cf1 Fixes #14039, fixes #16636: Fixed validation for disabled inputs 2018-10-19 01:26:40 +03:00
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
Sam
5332e900e3 Fixes #7341, #9551, #9928: Client validation now skips disabled inputs 2015-10-15 12:46:26 +03:00