mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-20 03:55:54 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue