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

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