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
1330ca9ec1
Fixed yii.js to follow jQuery 3.0 API changes
...
https://jquery.com/upgrade-guide/3.0/#breaking-change-and-feature-jquery-when-arguments
Single argument that is not a promise will be automatically resolved and passed to `done()` handlers
7 years ago
Mikk Tendermann
c009b06114
Fixes #14604 : Fixed `yii\validators\CompareValidator` `compareAttribute` does not work if `compareAttribute` form ID has been changed
7 years ago
Alexander Makarov
be211f76f5
Removed debug statement [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
7e681b4a56
Fixed yii.js to follow jquery-pjax API changes
...
Fixes #14926
7 years ago
eXeCUT
0e240ef2d0
Container type for pjax must be string
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
Vladislav Lyshenko
b00cd65ef3
Fixes #13738 : Fixed `getQueryParams()` method in `yii.js` to correctly parse URL with question mark and no query parameters
8 years ago
SilverFire - Dmitry Naumenko
36960da101
Fixed `applyFilter` function in `yii.gridView.js`
...
Closes bug #13379
`applyFilter` function in `yii.gridView.js` fixed to work correctly
when params in `filterUrl` are indexed
8 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
Alexey Rogachev
6b8cf1709e
Fixes #13306 : Wildcard in `reloadableScripts` in `yii.js` allows 0 characters
8 years ago
Alexey Rogachev
37f19a0256
Fixes #13300 , #13307 , #13310 , #13312
...
- Bug #13300 : Allow pjax with "data-pjax" with no value in `yii.js`.
- Bug #13307 : Preventing of race conditions in script filter in `yii.js` works incorrectly.
- Bug #13310 : Handle relative and absolute URLs coincidence in CSS filter in `yii.js`.
- Bug #13312 : `skipOuterContainers` option was incorrectly passed to pjax in `handleAction` in `yii.js`.
- Partially fixes #13299 .
Adds tests for #8014 , #11921 , #10974 , #11494 , #10358 , #10097 .
8 years ago
Alexey Rogachev
8d813f7bf1
Fixes #12840 , #12836 , #13231 , #13232
...
Additionally added tests for #10302 (#10284 (comment)), #10284 (#10217 (comment)), #11729
8 years ago
SilverFire - Dmitry Naumenko
7b5efe5161
Enhanced `handleAction()` in `yii.js`
...
Closes #12737
8 years ago
SilverFire - Dmitry Naumenko
a132ee9a08
Fixed order or checks in IpValidator
...
Fixes #13198
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
Alexey Rogachev
d96363674c
Added JS tests for yii.captcha.js ( #12840 ), fixes #13159 ( #13160 )
...
* Added JS tests for yii.captcha.js (#12840 ), fixes #13159
* Sinon needs to be imported in similar fashion in other test files
* Added according line to CHANGELOG [skip ci]
* Update CHANGELOG.md
* Try to run tests with default timeout in Travis
* Added note about JS tests to the docs [skip ci]
* Simplified tests for multiple elements (init, destroy methods)
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
SilverFire - Dmitry Naumenko
9807b2e1a1
Follow-up to 65c2ade
. Smarter fix of #13118
8 years ago
SilverFire - Dmitry Naumenko
65c2ade8ed
Fixed `handleAction()` function in `yii.js` to handle attribute `data-pjax=0` as disabled PJAX
...
Fixes #13118
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
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
mrgarry
f5049d8a31
Correct MSIE8 reserved word error ( #12722 )
...
In MSIE8 and below, yii.gridView file is not loaded and GridView widget is not working (throws Identifier expected error). The reason is that the variable name 'class' is a reserved word. To correct this, the variable name should be changed into an array key, which eliminates the error.
More info about the causes of error: https://tiffanybbrown.com/2013/09/10/expected-identifier-bug-in-internet-explorer-8/
8 years ago
SilverFire - Dmitry Naumenko
6f4c52a53d
Simplified Regex usage in JS
...
Follows 70752b0fc1
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
Carsten Brandt
b49ce4f0bb
Fixes Gridview JS to respect # in filterUrl ( #12837 )
...
* Fixes Gridview JS to respect # in filterUrl
fixes #12836
* Update CHANGELOG.md
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
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
SilverFire - Dmitry Naumenko
17df7577a5
Fixed URI component decoding with `+` (plus) sign
...
Fixes #11921
8 years ago
werew01f
1bd13e233b
afterInit event for yiiActiveForm
...
https://github.com/yiisoft/yii2/issues/12744
8 years ago
SilverFire - Dmitry Naumenko
1ab204e481
Fixed race condition in yii.js ajax prefilter
...
Closes #10358
8 years ago
SilverFire - Dmitry Naumenko
2d84f72e52
Reverted mis-paste during mege
8 years ago
githubjeka
76ced661b2
DetailView captionOptions & contentOptions attributes
8 years ago
SilverFire - Dmitry Naumenko
32f42e3fa6
Allow wildcards for reloadble CSS files
8 years ago
SilverFire - Dmitry Naumenko
ea0c6d7a1a
`yii.reloadableScripts` now support wildcards with `*` character
...
Closes #11494
8 years ago
SilverFire - Dmitry Naumenko
fc41a1c04b
Prevent reading property of undefined in `updateInputs()`
...
Closes #11352
8 years ago
Michael Härtl
3d4ab267b9
Issue #12580 Make yii.js comply to js strict mode
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