mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +08:00
Fixes #2881.
This commit is contained in:
@ -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(/(^\/|:\/\/)/)) {
|
||||
|
||||
Reference in New Issue
Block a user