Commit 1008249b by Qiang Xue

Fixes incorrect submit button detection.

parent cac70705
......@@ -131,7 +131,7 @@ yii = (function ($) {
if (method === undefined) {
if (action && action != '#') {
window.location = action;
} else if ($e.filter(':submit') && $form.length) {
} else if ($e.is(':submit') && $form.length) {
$form.trigger('submit');
}
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment