Paul Klimov
e28bf15754
Fixes #11389 : `yii\base\Event` refactored to match commonly used notations
6 years ago
Alexander Makarov
c184ef864e
Adjusted versioning
6 years ago
Klimov Paul
d1ff652b2f
class DI definitions changed to '__class' keyword
7 years ago
Paul Klimov
b44a461c2e
`ActiveForm::$validationStateOn` restored
7 years ago
SilverFire - Dmitry Naumenko
22832b7c49
release version 2.0.14
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
Alone
08eccb612f
Fixes #15536 : Fixed `yii\widgets\ActiveForm::init()` for call `parent::init()`
7 years ago
Paul Klimov
bf116e6103
Fix #8452 Jquery Extraction (attempt 2) ( #14865 )
...
* JQuery usage removed from `yii\web\View`
* assets moved to 'jquery'
* `GridViewClientScript` extracted
* `PunycodeAsset` moved to `jquery`
* `ActiveFormClientScript` extracted
* client validators extracted
* UPGRADE added
* fix unit tests
* fix JS unit tests
* path to captcha client validator fixed
* `ActiveFormClientScript::defaultClientValidatorMap()` added
* UPGRADE note extended
* `CompareValidator` adjusted
* `View::registerCsrfMetaTags()` restored
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Carsten Brandt
f14d4c767f
fixed missing changelog and missing `@since`
8 years ago
SilverFire - Dmitry Naumenko
fce20a3020
Renamed `ActiveForm::registerJs()` to `registerClientScript()`, added tests
8 years ago
Oleg Poludnenko
a480d70875
More control over ActiveForm widget
...
If part of a form is rendered separately (e.g. in ajax request), it's not easy to apply JS validation to it.
By moving JS registration to a separate method this problem could be solved much more easier.
8 years ago
Brandon Kelly
5609e918de
Fixed some malformed @var tags ( #13468 ) [skip ci]
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
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
Roman Grinyov
b668970a80
Small corrections in docblocks ( #12443 ) [skip ci]
8 years ago
Roman Grinyov
b5b674995c
Cosmetic changes
8 years ago
Carsten Brandt
98ed490c3d
Consistent behavior of `run()` method in widgets
...
All widgets return the result now for better extensibility
close #10771
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Angel Guevara
35d7cacfbd
simplify default classes
9 years ago
Carsten Brandt
608066b05f
fixed ActiveForm tests for output buffering
...
related to #8779 , and 7dc984d359
9 years ago
Daniel Gomez Pan
7dc984d359
Fixed #8779 : Automatically set enctype form option when using file input field
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Nikola Kovacs
2577a5915b
Fixes #7259 : Added `errorAttributes` parameter to ActiveForm `afterValidate` event. Made scrolling to first error optional
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Nikola Kovacs
49e5c59a75
Fix phpdoc
9 years ago
Qiang Xue
78d3a856d3
Added `Json::htmlEncode()` to support safer JSON data encoding in HTML code
10 years ago
Carsten Brandt
92b1ba77db
improved phpdoc of ActiveForm
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Alexander Mohorev
64b4d6dca1
Correct order of property declaration
10 years ago
Qiang Xue
d3f2010e07
Fixes #2380 : Added `yii\widgets\ActiveForm::enableClientScript` to support turning on and off client side script generation
10 years ago
Qiang Xue
a187d47aec
Fixes #5049 : `ActiveForm::validationDelay` should be applied to user types only
10 years ago
Qiang Xue
f50f840a55
Fixes #4955 : Replaced callbacks with events for `ActiveForm`
10 years ago
Qiang Xue
ae13b0593f
Fixes #3410 : yii.activeForm.js now supports adding/removing fields dynamically
10 years ago
Qiang Xue
08d4d89930
Fixes #2914 : `ActiveForm::fieldConfig` will be merged recursively with the `$options` parameter in `ActiveForm::field()`
10 years ago
Qiang Xue
155f525e0b
Fixes #2380 : `yii\widgets\ActiveForm` will register validation js even if there are not fields inside
10 years ago
Qiang Xue
4ad022c372
Fixes #3240 : Added support for assigning an anonymous function to `yii\widgets\ActiveForm::fieldConfig`
10 years ago
Qiang Xue
f34b138aab
Fixes #4225 : Added `ActiveForm::validateOnBlur` and `ActiveField::validateOnBlur`
10 years ago
Qiang Xue
c0d771f744
Fixes #4640 : Added `yii\widgets\ActiveForm::beginField()` and `endField()`
10 years ago
Alex-Code
25c2f9bf85
Made error message encoding configurable for ActiveForm
...
Updated yii.activeform.js to use the encode option introduced in #4122 .
Updated ActiveForm with new option encodeErrorSummary
fixes #4690 , close #4691
10 years ago
Alex-Code
594b57836d
Added validation js callbacks
...
- `beforeValidateAll`
- `afterValidateAll`
fixes #4234 , close #4559
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Thiago Talma
88191bbe5c
New callback functions for form validation using Ajax.
...
close #4436
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Alexander Kochetov
1b81503d71
\yii\widgets\ActiveForm incorrect js selector for `errorSummaryCss` property better fix
10 years ago
Alexander Kochetov
4894d66d6e
\yii\widgets\ActiveForm incorrect js selector for `errorSummaryCss` property fixed
10 years ago