From aa828194a40c83857085f9be25c614d8bdb79b34 Mon Sep 17 00:00:00 2001 From: "qiang.xue" Date: Thu, 6 Aug 2009 13:41:07 +0000 Subject: [PATCH] * (Fixes issue 492) Enhanced form submit script so that it respects to existing submit event handlers --- CHANGELOG | 1 + framework/web/js/source/jquery.yii.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 8f54a6c9b4..f51330928f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -16,6 +16,7 @@ Version 1.0.8 To be released - New #425: Added defaultParams option to the rules used by CUrlManager (Qiang) - New #436: Added error templates in Russian (idlesign) - New #467: Improved the algorithm for determining script URL by CHttpRequest (Qiang) +- New #492: Enhanced form submit script so that it respects to existing submit event handlers (Qiang) - New #493: Added call stack information to log when a PHP error occurs (Qiang) - New: CDbCommand::bindParam() and bindValue() now return the command object so that they can be used in a chainable fashion (Qiang) - New: Added thead and tbody to the code generated by crud command (Qiang) diff --git a/framework/web/js/source/jquery.yii.js b/framework/web/js/source/jquery.yii.js index fd0df1e793..467f5b67c1 100644 --- a/framework/web/js/source/jquery.yii.js +++ b/framework/web/js/source/jquery.yii.js @@ -34,7 +34,7 @@ $.yii = { inputs.push(input); }); - f.submit(); + f.trigger('submit'); for (input in inputs) { f.removeChild(inputs[input]);