Merge pull request #4734 from tchak/select-timeout
Add a timeout to select2 queries
This commit is contained in:
commit
2beb63fadb
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