Add a timeout to select2 queries

This commit is contained in:
Paul Chavard 2020-01-30 13:55:03 +01:00
parent 9dd5d1d04f
commit 068471003d

View file

@ -52,6 +52,7 @@ const baseOptions = {
const baseAjaxOptions = { const baseAjaxOptions = {
delay: 250, delay: 250,
timeout: 10 * 1000, // 10 sec
cache: true, cache: true,
data({ term: nom }) { data({ term: nom }) {
return { return {