187 Commits

Author SHA1 Message Date
cb90f31cbe Fixes #5702: Parenthesis should be automatically added to Validator::whenClient to avoid js error 2014-10-23 09:18:53 -04:00
5684eaf0ed Replaced single quotes with double 2014-10-22 12:40:13 +02:00
48ec791e4a Fixes #5587: json_encode is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE where it makes sense, also it is now default for Json::encode() 2014-10-19 18:50:46 +04:00
366852647b typo fix
close #5455
2014-10-09 18:00:37 +02:00
169a2a39c0 Fixes #5110. 2014-09-19 11:43:55 -04:00
d3f2010e07 Fixes #2380: Added yii\widgets\ActiveForm::enableClientScript to support turning on and off client side script generation 2014-09-18 13:04:46 -04:00
93496bf8fd Fixes #5058: yii\helpers\Html::activeCheckbox() and activeRadio() will generate labels by default using the corresponding attribute labels 2014-09-18 12:15:54 -04:00
32c122178e avoid publishing dev files of js packages 2014-09-17 19:13:29 +02:00
074c1f6c53 Merge branch 'master' into new-asset
Conflicts:
	apps/basic/composer.json
	composer.json
2014-09-16 20:03:53 -04:00
a187d47aec Fixes #5049: ActiveForm::validationDelay should be applied to user types only 2014-09-16 14:40:00 -04:00
286e8efe9f Updated phpdoc for \yii\widgets\DetailView [ckip ci]
This widget usage is not only restricted with `Model` or associative array (see its `normalizeAttributes()` method)
2014-09-10 21:39:07 +04:00
2b38d6ab33 Merge branch 'master' into Erik-r-2359-formatter-refactored
* master: (22 commits)
  Fixes #4971: Fixed hardcoded table names in `viaTable` expression in model generator
  Fixed test break.
  Fixes #4955: Replaced callbacks with events for `ActiveForm`
  Fix brackets
  Rename `\yii\web\User` component param for consistency
  Html::button() type is `button` by default
  Fix bug in Estonian translation
  Typo fixed inside \yii\rest\CreateAction
  Fixed test break.
  Fixed test case.
  note about validation rules order
  Return a fixtures cleanup in case of a failing test
  Update finnish translation
  skip fixture controller test on HHVM
  Make unit tests cleanup a DB after finish
  Fixes #4945: Added `yii\test\ArrayFixture`
  added array fixture class
  minor doc adjustment [skip ci]
  Fixes #4948. Thanks, @johan162
  Fixes #4947
  ...

Conflicts:
	framework/UPGRADE.md
2014-09-10 19:26:04 +02:00
d82195706f UPGRADE and CHANGELOG notes for the Formatter changes 2014-09-10 17:56:25 +02:00
f50f840a55 Fixes #4955: Replaced callbacks with events for ActiveForm 2014-09-09 22:37:27 -04:00
ae13b0593f Fixes #3410: yii.activeForm.js now supports adding/removing fields dynamically 2014-09-05 23:10:23 -04:00
08d4d89930 Fixes #2914: ActiveForm::fieldConfig will be merged recursively with the $options parameter in ActiveForm::field() 2014-09-05 20:54:05 -04:00
155f525e0b Fixes #2380: yii\widgets\ActiveForm will register validation js even if there are not fields inside 2014-09-05 15:08:09 -04:00
d5077d70b7 Fixes #3738: ActiveField custom error selector not functioning 2014-09-05 14:50:24 -04:00
4ad022c372 Fixes #3240: Added support for assigning an anonymous function to yii\widgets\ActiveForm::fieldConfig 2014-09-05 13:37:52 -04:00
f34b138aab Fixes #4225: Added ActiveForm::validateOnBlur and ActiveField::validateOnBlur 2014-09-03 16:14:54 -04:00
60e07e0d2a new asset WIP: renabled asset publishing 2014-09-02 14:51:44 -04:00
1a62551691 new asset WIP 2014-08-28 17:02:56 -04:00
c0d771f744 Fixes #4640: Added yii\widgets\ActiveForm::beginField() and endField() 2014-08-17 20:58:34 -04:00
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
2014-08-13 00:53:38 +02:00
9f155de82d removed the key from the array in the fix for #4371 2014-08-11 23:30:43 -04:00
b7cad9df3d Fixes #4371: Active form client validation wasn't working in case of two models having same named fields
When rendering multiple models in the same ActiveForm if any of the field names in the two models is the same then the corresponding attribute in the yiiActiveForm object in yiiActiveForm.js (ie $('form').data('yiiActiveForm').attributes) of the first rendered model is overwritten by the attribute of the last model causing the client-side validation for the overwritten field not to run at all. Example: given two models Car and Owner with attributes {make, age} and {name, age} then if the Car is rendered first its age attribute will not have any client validation.
2014-08-12 01:38:05 +04:00
b1e2090083 Fixes #4595: more consistend use of "false" in "don't use" case 2014-08-07 15:58:52 +04:00
594b57836d Added validation js callbacks
- `beforeValidateAll`
- `afterValidateAll`

fixes #4234, close #4559
2014-08-04 18:06:10 +02:00
f74e208103 Merge branch 'deferred-validation' of github.com:Alex-Code/yii2 into Alex-Code-deferred-validation
Conflicts:
	framework/CHANGELOG.md
2014-07-31 11:28:27 -04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
b4ca343bd2 deferred validation
Added support of deferred validation.
2014-07-28 09:54:23 +01:00
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
88191bbe5c New callback functions for form validation using Ajax.
close #4436
2014-07-25 09:24:04 +02:00
b147e6516d minor CS fixes [skip ci] 2014-07-10 11:59:27 -04:00
504e973f67 Fixes #4241: yii\widgets\Pjax was incorrectly setting container id 2014-07-10 17:30:55 +04:00
374b98e2e4 Fixes #4227: \yii\widgets\LinkPager::$hideOnSinglePage is now true by default 2014-07-09 17:23:47 +04:00
3405f8e8a4 doc fix [skip ci] 2014-07-05 00:03:03 -04:00
085f2c0142 gridview and listview use widget ID in base tag 2014-06-27 20:26:26 +02:00
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00
0d03f720a4 added usage example of ActiveField::widget() 2014-06-25 13:14:03 +02:00
79f9f85ff2 Fixes #4024, Fixes #4028 2014-06-24 02:43:42 +04:00
85fd823ee6 Added ability to yii\widgets\Menu to encode each item's label separately (creocoder, umneeq) 2014-06-24 00:34:17 +03:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
7889d1ee88 Upgrade of the code 2014-06-17 21:34:56 +03:00
1909da2a21 re ownTemplate => template 2014-06-17 20:35:40 +03:00
7f0427d911 ownTemplate => template 2014-06-17 20:26:16 +03:00
b1f71cbf60 yii\widgets\Breadcrumbs enhancement. Allow link to have its ownTemplate 2014-06-17 20:02:12 +03:00
0740d2da61 Merge branch 'widgets-activeform-incorrect-js-selector' of github.com:creocoder/yii2 into creocoder-widgets-activeform-incorrect-js-selector
Conflicts:
	framework/CHANGELOG.md
2014-06-13 22:01:47 -04:00
1b81503d71 \yii\widgets\ActiveForm incorrect js selector for errorSummaryCss property better fix 2014-06-14 02:02:35 +04:00
4894d66d6e \yii\widgets\ActiveForm incorrect js selector for errorSummaryCss property fixed 2014-06-14 01:28:16 +04:00