Alexander Makarov
8ac5776a0d
Changed back usage of attr() to usage of prop() for checkboxes
2015-04-12 11:46:37 +03:00
Alexander Makarov
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
Alexander Makarov
e224568b49
Fixes #8014 : Fixed setting incorrect form "action" property after submitting a form using a link with "data-method" and containing "action" among "data-params"
2015-04-08 03:17:42 +03:00
CthulhuDen
dad47b433e
do not extra convert to floats in CompareValidator client code
2015-04-04 22:29:08 -04:00
Qiang Xue
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
Sidney Lins (slinstj, former sidtj)
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
Alexander Makarov
52df3466f4
Reverted #7450 : Don't add empty parameters to URL when filtering a grid (reverted from commit aba7710699)
2015-03-06 23:40:30 +03:00
Yurii K
aba7710699
Fixes #7450 : Don't add empty parameters to URL when filtering a grid
2015-03-06 23:14:24 +03:00
Qiang Xue
e56bf03130
Fixed test break.
2015-02-22 19:33:23 -05:00
Qiang Xue
57c298a523
Fixes #7361 : The trim validator now works on the client side too
2015-02-22 19:25:06 -05:00
Qiang Xue
770d65a052
Fixes #6361
2015-02-02 12:27:27 -05:00
Qiang Xue
4dcbe83aa6
Fixes #6361 : Added validateAttribute() to yii.activeForm.js to support manually triggering data validation of an input
2015-02-01 22:46:16 -05:00
Alex-Code
a43833544b
Attach forceValidate event to attributes
...
Allow attributes to have their validation triggered by a custom event.
`validateAttribute` is called with `forceValidate` set to true.
2015-02-01 22:33:16 -05:00
Qiang Xue
7031020c63
Fixes #6661 : Hyperlinks that are enclosed within an exist form will use the same form for submission if they specify both of the href and data-method attributes
2015-01-16 22:09:28 -05:00
Qiang Xue
9c287cb651
Fixes #5663 and #5671 : Added support for using data-params to specify additional form data to be submitted via the data-method approach
2015-01-14 22:18:05 -05:00
usualdesigner
80cc9cc16f
Basic implementation of the data-params attributes
2015-01-14 21:52:02 -05:00
Qiang Xue
fa0a3aefae
Fixes #6467 : ActiveForm will scroll to the nearest visible element when the first error input is hidden
2014-12-13 19:53:18 -05:00
Qiang Xue
8809d422dc
Fixes #5005 : Added support to suppress loading the same CSS files in AJAX responses
2014-12-06 10:09:47 -05:00
Tomek Romik
daddc61e7b
Add File API detection to client file validator
...
Fixes #6345
2014-12-06 08:53:14 -05:00
Qiang Xue
2a0797dd23
Fixes #6266 : Clicking on reset button does not hide error summary when using ActiveForm
2014-11-26 11:06:26 -05:00
Alexander Makarov
dab2b03f09
Fixes #5863 : Selecting all individual yii\grid\CheckboxColumn checkboxes in grid view wasn't resulting in "all" checkbox selected
2014-11-09 03:02:34 +03:00
Qiang Xue
1008249b54
Fixes incorrect submit button detection.
2014-11-08 08:52:27 -05:00
Qiang Xue
f1812210a8
Fixes #5768 : When setting data-confirm attribute to a submit button, clicking on the button would not trigger form submission
2014-11-07 10:29:04 -05:00
Qiang Xue
add2413e08
better way of generating html code.
2014-11-06 11:16:14 -05:00
Qiang Xue
232bcd1dd5
Fixes #5171 : Fixed the bug that ActiveForm + Pjax submit event is only triggered once.
2014-10-10 00:57:09 -04:00
Qiang Xue
82037bc70e
Fixes #5124 : Added support to prevent duplicated form submission when using ActiveForm
2014-09-22 12:19:11 -04:00
Qiang Xue
34a2c590e4
Fixes #5117 : Added beforeFilter and afterFilter JS events to GridView
2014-09-22 11:38:26 -04:00
Kartik Visweswaran
db99b5fda5
Code cleanup - beforeFilter and afterFilter events
2014-09-22 11:35:00 -04:00
Kartik Visweswaran
2c64ee0f1d
Updated comments for beforeFilter event
2014-09-22 11:34:59 -04:00
Kartik Visweswaran
9496c46646
Updated formatting - Created beforeFilter and afterFilter grid events
2014-09-22 11:34:59 -04:00
Kartik Visweswaran
4c9556a9f3
Simplified afterFilter event trigger code
2014-09-22 11:34:58 -04:00
Kartik Visweswaran
f8dc796d23
Simplified beforeFilter and afterFilter events
...
Removed `form` as a parameter to the events since it can be retrieved using `$grid.find('form.gridview-filter-form')`.
2014-09-22 11:34:58 -04:00
Kartik Visweswaran
4bd8a8c9dd
Corrected trigger element for beforeFilter
2014-09-22 11:34:57 -04:00
Kartik Visweswaran
df99a2435e
Updated comments for beforeFilter and afterFilter events
2014-09-22 11:34:57 -04:00
Kartik Visweswaran
141e3d7039
Updated comments for beforeFilter event
2014-09-22 11:34:56 -04:00
Kartik Visweswaran
f95be734cf
Created beforeFilter and afterFilter grid events
...
Events `beforeFilter.yiiGridView` and `afterFilter.yiiGridView` javascript events created for advanced use cases.
2014-09-22 11:34:56 -04:00
Kartik Visweswaran
48d2204226
Add event for coding post filter triggers
...
Trigger a new `filter.yiiGridView` event for yii grid view after grid filters are applied. This will enable developer to code a lot of use cases based on the grid filtering event. The filter `$form` can be accessed as a parameter to the event.
2014-09-22 11:34:56 -04:00
Qiang Xue
deb6ba3cf9
Fixes #5105 [skip ci]
2014-09-18 16:47:43 -04:00
Qiang Xue
108b451805
Fixes #5049 .
2014-09-18 15:41:11 -04:00
Qiang Xue
074c1f6c53
Merge branch 'master' into new-asset
...
Conflicts:
apps/basic/composer.json
composer.json
2014-09-16 20:03:53 -04:00
Qiang Xue
a187d47aec
Fixes #5049 : ActiveForm::validationDelay should be applied to user types only
2014-09-16 14:40:00 -04:00
Qiang Xue
8d082c11a1
Fixes #5050 .
2014-09-16 14:15:32 -04:00
Qiang Xue
72a81b8e31
Fixes #3581 : Added yii\validators\CompareValidator::type to support type conversion before comparing values
2014-09-16 11:41:54 -04:00
Qiang Xue
0fc46760b0
Fixes #4905 : ActiveForm::$validationDelay doesn't delay after keyrelease when $validateOnType=true
2014-09-15 23:24:12 -04:00
Qiang Xue
11132cee1a
Fixes #5006 .
2014-09-15 23:03:10 -04:00
Qiang Xue
de63a46d82
Fixes #4984 .
2014-09-10 21:57:02 -04:00
Qiang Xue
f50f840a55
Fixes #4955 : Replaced callbacks with events for ActiveForm
2014-09-09 22:37:27 -04:00
Qiang Xue
b4c4b4053a
Fixes #3511 : Dropped yii.allowAction() and modified yii.confirm() in yii.js to support callbacks
2014-09-06 20:03:36 -04:00
Qiang Xue
ae13b0593f
Fixes #3410 : yii.activeForm.js now supports adding/removing fields dynamically
2014-09-05 23:10:23 -04:00
Qiang Xue
262a77caca
Added yii\web\Response::enableCsrfCookie to support storing CSRF tokens in session
2014-09-04 12:20:09 -04:00