Browse Source

Fixes #3216: Fixed the bug that `yii.activeForm.destroy()` did not remove `submit` event handlers

tags/2.0.0-rc
Qiang Xue 11 years ago
parent
commit
d859fca569
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/assets/yii.activeForm.js

1
framework/CHANGELOG.md

@ -18,6 +18,7 @@ Yii Framework 2 Change Log
- Bug #3184: Fixed the bug that client validation for string length comparison did not set error message correctly (Sergeygithub)
- Bug #3194: Date formatter works only for timestamps in the year range 1970 to 2038 (kartik-v)
- Bug #3204: `yii\di\Container` did not handle the `$config` parameter well in case when it does not have a default value (qiangxue)
- Bug #3216: Fixed the bug that `yii.activeForm.destroy()` did not remove `submit` event handlers (qiangxue)
- Enh #2837: Error page now shows arguments in stack trace method calls (samdark)
- Enh #3088: The debug and gii modules will manage their own URL rules now (hiltonjanfield, qiangxue)
- Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)

2
framework/assets/yii.activeForm.js

@ -111,7 +111,7 @@
$form.on('mouseup.yiiActiveForm keyup.yiiActiveForm', ':submit', function () {
$form.data('yiiActiveForm').submitObject = $(this);
});
$form.on('submit', methods.submitForm);
$form.on('submit.yiiActiveForm', methods.submitForm);
}
});
},

Loading…
Cancel
Save