Skip to content

Commit

Permalink
Updated yii.activeForm to follow jQuery 3.0 API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Sep 9, 2017
1 parent 34cc2de commit 70ad9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/assets/yii.activeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
* Clean up error status when the form is reset.
* Note that $form.on('reset', ...) does work because the "reset" event does not bubble on IE.
*/
$form.bind('reset.yiiActiveForm', methods.resetForm);
$form.on('reset.yiiActiveForm', methods.resetForm);

if (settings.validateOnSubmit) {
$form.on('mouseup.yiiActiveForm keyup.yiiActiveForm', ':submit', function () {
Expand Down Expand Up @@ -287,7 +287,7 @@

destroy: function () {
return this.each(function () {
$(this).unbind('.yiiActiveForm');
$(this).off('.yiiActiveForm');
$(this).removeData('yiiActiveForm');
});
},
Expand Down

0 comments on commit 70ad9f7

Please sign in to comment.