mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 00:32:16 +02:00
N°2822 - Fix timeout message through AJAX calls in the Portal
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user