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:
parent
d7a3e0f58c
commit
489f785992
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user