Commit e343d2d7 by Qiang Xue

Fixes #2881.

parent ccd16e18
......@@ -116,7 +116,7 @@ yii = (function ($) {
}
var $form = $e.closest('form');
var newForm = !$form.length;
var newForm = !$form.length && $e.prop('href') != '';
if (newForm) {
var action = $e.prop('href');
if (!action || !action.match(/(^\/|:\/\/)/)) {
......
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