Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
091d9678
Commit
091d9678
authored
May 01, 2011
by
stef
Browse files
[fix] autocomplete should now be working
parent
c656cf4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
media/js/form.js
View file @
091d9678
...
...
@@ -14,9 +14,9 @@ function init_form() {
var
country
=
$
(
this
).
attr
(
'
value
'
);
if
(
country
.
length
>
0
)
{
$
(
'
#id_operator
'
).
parent
().
show
();
$
(
'
#id_operator
'
).
focus
();
$
.
getJSON
(
'
/ajax/
'
+
country
,
function
(
data
)
{
$
(
"
#id_operator
"
).
autocomplete
(
data
,
{
minChars
:
0
,
autoFill
:
true
});
$
(
'
#id_operator
'
).
focus
();
});
}
});
...
...
@@ -25,9 +25,9 @@ function init_form() {
var
operator
=
$
(
this
).
val
();
if
(
operator
.
length
>
0
)
{
$
(
'
#id_contract
'
).
parent
().
show
();
$
(
'
#id_contract
'
).
focus
();
$
.
getJSON
(
'
/ajax/
'
+
country
+
'
/
'
+
operator
,
function
(
data
)
{
$
(
"
#id_contract
"
).
autocomplete
(
data
,{
minChars
:
0
});
$
(
'
#id_contract
'
).
focus
();
});
}
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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