N°2822 - Fix timeout message through AJAX calls in the Portal

This commit is contained in:
Molkobain
2020-02-28 16:52:09 +01:00
parent ffa43160bf
commit 39d3e00ba1
2 changed files with 8 additions and 0 deletions

View File

@@ -466,6 +466,10 @@
$(document).ready(function(){
{% block pPageReadyScripts %}
// Add proprietary header to identify our XHR calls
$(document).ajaxSend(function(oEvent, oXHR, oOptions) {
oXHR.setRequestHeader('X-Combodo-Ajax', 'true');
});
// Handle AJAX errors (exceptions (500), logout (401), ...)
$(document).ajaxError(function(oEvent, oXHR, oSettings, sError){
if(oXHR.status === 401)