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 <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-11-04 20:49:53 +01:00
parent d7a3e0f58c
commit 489f785992
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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