Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
b5d49803
Commit
b5d49803
authored
Apr 30, 2011
by
stef
Browse files
[mod] ecma conformance
parent
42e7cc59
Changes
1
Hide whitespace changes
Inline
Side-by-side
media/js/form.js
View file @
b5d49803
...
...
@@ -15,7 +15,7 @@ function init_form() {
if
(
country
.
length
>
0
)
{
$
(
'
#id_operator
'
).
parent
().
show
();
$
.
getJSON
(
'
/ajax/
'
+
country
,
function
(
data
)
{
$
(
"
#id_operator
"
).
autocomplete
(
data
,
{
minChars
:
0
,
autoFill
:
true
,
});
$
(
"
#id_operator
"
).
autocomplete
(
data
,
{
minChars
:
0
,
autoFill
:
true
});
});
}
});
...
...
@@ -25,7 +25,7 @@ function init_form() {
if
(
operator
.
length
>
0
)
{
$
(
'
#id_contract
'
).
parent
().
show
();
$
.
getJSON
(
'
/ajax/
'
+
country
+
'
/
'
+
operator
,
function
(
data
)
{
$
(
"
#id_contract
"
).
autocomplete
(
data
,{
minChars
:
0
,
});
$
(
"
#id_contract
"
).
autocomplete
(
data
,{
minChars
:
0
});
});
}
});
...
...
@@ -33,6 +33,7 @@ function init_form() {
if
(
$
(
this
).
val
().
length
>
0
)
{
$
(
'
#id_comment
'
).
parent
().
show
();
$
(
'
#id_email
'
).
parent
().
show
();
$
(
'
#id_nick
'
).
parent
().
show
();
$
(
'
#id_attachments0
'
).
parent
().
show
();
}
});
...
...
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