add support for status 403 feedback from e.g. ModSecurity/CRS
This commit is contained in:
parent
5f3dff4921
commit
a8118a14cd
@ -113,8 +113,12 @@ define(['jquery',
|
|||||||
//complete: function (data) {
|
//complete: function (data) {
|
||||||
//callbackFunction(data);
|
//callbackFunction(data);
|
||||||
//}
|
//}
|
||||||
}).then(function(data){
|
}).then(
|
||||||
self.onSuccessResponse(data, failureCallbackFunctionName, successCallBackFunctionName)}, self.onErrorResponse.bind(self));
|
function(data){
|
||||||
|
self.onSuccessResponse(data, failureCallbackFunctionName, successCallBackFunctionName)
|
||||||
|
},
|
||||||
|
self.onErrorResponse.bind(self)
|
||||||
|
);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -147,10 +151,15 @@ define(['jquery',
|
|||||||
$(this.curForm).siblings('.assignment-success').find('i').addClass('hidden');
|
$(this.curForm).siblings('.assignment-success').find('i').addClass('hidden');
|
||||||
},
|
},
|
||||||
|
|
||||||
onErrorResponse: function (a,b,c) {
|
onErrorResponse: function (data,b,c) {
|
||||||
console.error(a);
|
console.error(data);
|
||||||
|
if (data.status == 403) {
|
||||||
|
this.renderFeedback(data.responseText);
|
||||||
|
}
|
||||||
|
|
||||||
console.error(b);
|
console.error(b);
|
||||||
console.error(c);
|
console.error(c);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user