mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04: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
|
// when page ready
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
// set global ajax timeout
|
||||||
|
$.ajaxSetup({
|
||||||
|
timeout: 10000
|
||||||
|
})
|
||||||
|
|
||||||
idle.checkAway()
|
idle.checkAway()
|
||||||
checkResponsive()
|
checkResponsive()
|
||||||
// if in smaller screen, we don't need advanced scrollbar
|
// if in smaller screen, we don't need advanced scrollbar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue