Skip to content

Commit b5945ec

Browse files
committed
Update JsUtilsAjaxTrait.php
1 parent b91ed88 commit b5945ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/common/traits/JsUtilsAjaxTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function _ajax($method, $url, $responseElement = '', $parameters = [])
7474
if (isset($error)) {
7575
$retour .= '.fail(function( jqXHR, textStatus, errorThrown ){' . $error . '})';
7676
}
77-
$retour .= '.always(function( data|jqXHR, textStatus, jqXHR|errorThrown ) {' . ($always ?? '') . $this->removeLoader($hasLoader) . '})';
77+
$retour .= '.always(function( dataOrjqXHR, textStatus, jqXHROrerrorThrown ) {' . ($always ?? '') . $this->removeLoader($hasLoader) . '})';
7878
$retour .= ";\n";
7979
$retour = $this->_addJsCondition($jsCondition, $retour);
8080
if ($immediatly) {
@@ -829,7 +829,7 @@ private function _postForm($url, $form, $responseElement, $parameters = []) {
829829
if (isset($error)) {
830830
$retour .= '.fail(function( jqXHR, textStatus, errorThrown ){' . $error . '})';
831831
}
832-
$retour .= '.always(function( data|jqXHR, textStatus, jqXHR|errorThrown ) {' . ($always ?? '') . $this->removeLoader($hasLoader) . '})';
832+
$retour .= '.always(function( dataOrjqXHR, textStatus, jqXHROrerrorThrown ) {' . ($always ?? '') . $this->removeLoader($hasLoader) . '})';
833833
$retour .= ";\n";
834834
if ($validation) {
835835
$retour = "$('#'+" . $form . ").validate({submitHandler: function(form) {

0 commit comments

Comments
 (0)