Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
5a78064e
Commit
5a78064e
authored
Mar 04, 2015
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the timeout also on userfields
parent
eadad53a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
js/ajax.js
js/ajax.js
+9
-4
No files found.
js/ajax.js
View file @
5a78064e
...
...
@@ -314,6 +314,7 @@ function userselect_set_user(topdir, ref,id,nom)
*/
var
userselect_sequence
=
0
;
var
userselect_actual_sequence
=
0
;
var
timer
=
0
;
function
userselect_keyup
(
event
,
ref
,
topdir
)
{
...
...
@@ -321,13 +322,17 @@ function userselect_keyup(event,ref,topdir)
if
(
event
.
ctrlKey
||
event
.
keyCode
==
27
||
event
.
keyCode
==
13
)
return
false
;
var
obj
=
document
.
getElementById
(
ref
+
'
_field
'
);
if
(
timer
)
clearTimeout
(
timer
);
timer
=
setTimeout
(
function
()
{
var
obj
=
document
.
getElementById
(
ref
+
'
_field
'
);
if
(
!
obj
)
return
false
;
if
(
!
obj
)
return
false
;
userselect_sequence
=
userselect_sequence
+
1
;
userselect_sequence
=
userselect_sequence
+
1
;
evalCommand
(
topdir
+
"
gateway.php
"
,
"
module=userfield&userselect_sequence=
"
+
userselect_sequence
+
"
&pattern=
"
+
obj
.
value
+
"
&ref=
"
+
ref
);
evalCommand
(
topdir
+
"
gateway.php
"
,
"
module=userfield&userselect_sequence=
"
+
userselect_sequence
+
"
&pattern=
"
+
obj
.
value
+
"
&ref=
"
+
ref
);
},
300
);
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment