From 489f785992ab6918c4520b29bb69bef23a02afc2 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 4 Nov 2021 20:49:53 +0100 Subject: [PATCH] Set global timeout for Ajax operations `ajaxSetup()` sets the default values for future Ajax operations. See also https://api.jquery.com/jQuery.ajaxSetup/ https://api.jquery.com/jquery.ajax/ Signed-off-by: David Mehren --- public/js/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/index.js b/public/js/index.js index 80b23d278..a61a3c3cb 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -621,6 +621,11 @@ Visibility.change(function (e, state) { // when page ready $(document).ready(function () { + // set global ajax timeout + $.ajaxSetup({ + timeout: 10000 + }) + idle.checkAway() checkResponsive() // if in smaller screen, we don't need advanced scrollbar