mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
Fixes #2881.
This commit is contained in:
@ -116,7 +116,7 @@ yii = (function ($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var $form = $e.closest('form');
|
var $form = $e.closest('form');
|
||||||
var newForm = !$form.length;
|
var newForm = !$form.length && $e.prop('href') != '';
|
||||||
if (newForm) {
|
if (newForm) {
|
||||||
var action = $e.prop('href');
|
var action = $e.prop('href');
|
||||||
if (!action || !action.match(/(^\/|:\/\/)/)) {
|
if (!action || !action.match(/(^\/|:\/\/)/)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user