This commit is contained in:
Qiang Xue
2014-03-25 23:33:59 -04:00
parent ccd16e184f
commit e343d2d7db

View File

@ -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(/(^\/|:\/\/)/)) {