Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
self-reg-form
Commits
389cfaef
Commit
389cfaef
authored
Nov 18, 2021
by
Krish Moodbidri
Browse files
1. improved submit button toggle case wrt checkbox value
2. send checkbox value instead of a hardcoded value
parent
16b3fc1c
Pipeline
#5339
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/static/scripts/function.js
View file @
389cfaef
var
check_counter
=
0
;
function
check
()
{
var
submitButton
=
document
.
getElementById
(
"
submit
"
);
if
((
check_counter
+=
1
)
%
2
)
submitButton
.
disabled
=
false
;
else
submitButton
.
disabled
=
true
;
let
ckbox
=
document
.
getElementById
(
'
agree
'
)
;
submitButton
.
disabled
=
!
ckbox
.
checked
;
};
function
displayloading1
()
{
...
...
@@ -20,7 +19,7 @@ function request_account() {
email
:
document
.
getElementById
(
"
email
"
).
value
,
reason
:
document
.
getElementById
(
"
reason
"
).
value
,
username
:
document
.
getElementById
(
"
username
"
).
value
,
aup
:
1
aup
:
document
.
getElementById
(
"
agree
"
).
checked
})
}
...
...
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