Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
self-reg-form
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
self-reg-form
Commits
b74d0e6f
Commit
b74d0e6f
authored
3 years ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
removed extra whitespaces and extral lines
parent
e8392a66
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4573
canceled with stage
Stage: lint
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/static/scripts/function.js
+9
-12
9 additions, 12 deletions
app/static/scripts/function.js
with
9 additions
and
12 deletions
app/static/scripts/function.js
+
9
−
12
View file @
b74d0e6f
function
displayloading1
()
{
$
(
'
#overlayModal
'
).
modal
(
'
show
'
);
$
(
'
#overlayModal
'
).
modal
(
'
show
'
);
}
function
displayloading2
()
{
$
(
'
#overlayModal
'
).
modal
(
'
hide
'
);
$
(
'
#myModal2
'
).
modal
(
'
show
'
);
$
(
'
#overlayModal
'
).
modal
(
'
hide
'
);
$
(
'
#myModal2
'
).
modal
(
'
show
'
);
}
function
request_account
()
{
...
...
@@ -17,13 +17,13 @@ function request_account() {
}
function
renderDom
(
title
,
message
,
error_msg
)
{
document
.
getElementById
(
"
form-wrapper
"
).
innerHTML
=
"
<h
2
>
"
+
title
+
"
<br>
"
;
document
.
getElementById
(
"
form-wrapper
"
).
innerHTML
+=
"
<
h3
>
"
+
message
+
"
<br>
"
;
document
.
getElementById
(
"
form-wrapper
"
).
innerHTML
=
"
<h
3
>
"
+
title
+
"
<
/h3><
br>
"
;
document
.
getElementById
(
"
form-wrapper
"
).
innerHTML
+=
"
<
p
>
"
+
message
+
"
<
/p><
br>
"
;
if
(
error_msg
!==
null
)
{
var
error_button
=
document
.
createElement
(
"
BUTTON
"
);
error_button
.
innerHTML
=
'
Read Error Message
'
;
document
.
getElementById
(
"
form-wrapper
"
).
appendChild
(
error_button
);
error_button
.
onclick
=
function
(){
document
.
getElementById
(
"
form-wrapper
"
).
innerHTML
+=
"
<br>
"
+
error_msg
}
var
error_button
=
document
.
createElement
(
"
BUTTON
"
);
error_button
.
innerHTML
=
'
Read Error Message
'
;
document
.
getElementById
(
"
form-wrapper
"
).
appendChild
(
error_button
);
error_button
.
onclick
=
function
(){
document
.
getElementById
(
"
form-wrapper
"
).
innerHTML
+=
"
<br>
"
+
error_msg
}
}
}
...
...
@@ -31,17 +31,14 @@ function autofill_form(username, fullname, email) {
let
username_input
=
document
.
getElementById
(
"
username
"
);
let
fullname_input
=
document
.
getElementById
(
"
fullname
"
);
let
email_input
=
document
.
getElementById
(
"
email
"
);
if
((
username
.
localeCompare
(
"
None
"
))
!==
0
)
{
username_input
.
value
=
username
;
username_input
.
disabled
=
"
true
"
;
}
if
((
fullname
.
localeCompare
(
"
None
"
))
!==
0
)
{
fullname_input
.
value
=
fullname
;
fullname_input
.
disabled
=
"
true
"
;
}
if
((
email
.
localeCompare
(
"
None
"
))
!==
0
)
{
email_input
.
value
=
email
;
email_input
.
disabled
=
"
true
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment