Add a timeout to select2 queries
This commit is contained in:
parent
9dd5d1d04f
commit
068471003d
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue