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

This commit is contained in:
Qiang Xue
2014-04-22 12:46:37 -04:00
parent 30afb5145e
commit d859fca569
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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);
}
});
},