mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix #13920: Fixed erroneous validation for specific cases
This commit is contained in:
@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
||||
2.0.49 under development
|
||||
------------------------
|
||||
|
||||
- Bug #13920: Fixed erroneous validation for specific cases
|
||||
- Bug #19899: Fixed `GridView` in some cases calling `Model::generateAttributeLabel()` to generate label values that are never used (PowerGamer1)
|
||||
- Bug #9899: Fix caching a MSSQL query with BLOB data type (terabytesoftw)
|
||||
- Bug #16208: Fix `yii\log\FileTarget` to not export empty messages (terabytesoftw)
|
||||
|
@ -395,9 +395,11 @@
|
||||
data: $form.serialize() + extData,
|
||||
dataType: data.settings.ajaxDataType,
|
||||
complete: function (jqXHR, textStatus) {
|
||||
currentAjaxRequest = null;
|
||||
$form.trigger(events.ajaxComplete, [jqXHR, textStatus]);
|
||||
},
|
||||
beforeSend: function (jqXHR, settings) {
|
||||
currentAjaxRequest = jqXHR;
|
||||
$form.trigger(events.ajaxBeforeSend, [jqXHR, settings]);
|
||||
},
|
||||
success: function (msgs) {
|
||||
@ -563,6 +565,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentAjaxRequest !== null) {
|
||||
currentAjaxRequest.abort();
|
||||
}
|
||||
if (data.settings.timer !== undefined) {
|
||||
clearTimeout(data.settings.timer);
|
||||
}
|
||||
@ -929,4 +934,7 @@
|
||||
$form.find(attribute.input).attr('aria-invalid', hasError ? 'true' : 'false');
|
||||
}
|
||||
}
|
||||
|
||||
var currentAjaxRequest = null;
|
||||
|
||||
})(window.jQuery);
|
||||
|
Reference in New Issue
Block a user