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
2ceaf733
Commit
2ceaf733
authored
4 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
fixed overlay turn on on click submit
parent
033548da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4123
failed with stage
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/static/scripts/function.js
+8
-2
8 additions, 2 deletions
app/static/scripts/function.js
app/templates/auth/SignUp.html
+25
-3
25 additions, 3 deletions
app/templates/auth/SignUp.html
with
33 additions
and
5 deletions
app/static/scripts/function.js
+
8
−
2
View file @
2ceaf733
function
displayloading
()
{
$
(
'
#myModal
'
).
modal
(
'
show
'
);
function
displayloading1
()
{
$
(
'
#myModal1
'
).
modal
(
'
show
'
);
request_account
()
}
function
displayloading2
()
{
$
(
'
#myModal1
'
).
modal
(
'
hide
'
);
$
(
'
#myModal2
'
).
modal
(
'
show
'
);
}
function
request_account
()
{
...
...
This diff is collapsed.
Click to expand it.
app/templates/auth/SignUp.html
+
25
−
3
View file @
2ceaf733
...
...
@@ -18,7 +18,7 @@
socket
.
on
(
'
creating account
'
,
function
(
msg
)
{
document
.
getElementById
(
"
error
"
).
innerText
=
""
;
displayloading
();
displayloading
2
();
});
socket
.
on
(
'
account ready
'
,
function
(
msg
)
{
...
...
@@ -26,6 +26,11 @@
window
.
location
.
replace
(
'
{{ referrer }}
'
);
});
socket
.
on
(
'
account error
'
,
function
(
msg
)
{
$
(
'
#myModal
'
).
modal
(
'
hide
'
);
window
.
location
.
replace
(
"
www.google.com
"
)
});
socket
.
on
(
'
Account creation failed
'
,
function
(
msg
)
{
document
.
getElementById
(
"
error
"
).
innerText
=
"
Registration Failed. Please try again.
"
;
});
...
...
@@ -107,7 +112,7 @@
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required
></textarea>
</div>
<input
class=
"btn btn-primary btn-block"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"
request_account
()"
>
<input
class=
"btn btn-primary btn-block"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"
displayloading1
()"
>
<div>
<strong
id=
"error"
style=
"color: #be051b; text-align: center;"
></strong>
...
...
@@ -117,7 +122,24 @@
</div>
</div>
<div
class=
"modal fade"
id=
"myModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
data-backdrop=
"static"
data-keyboard=
"false"
>
<div
class=
"modal fade"
id=
"myModal1"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
data-backdrop=
"static"
data-keyboard=
"false"
>
<div
class=
"modal-dialog modal-sm"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
Account Request Received!
</h4>
</div>
<div
class=
"modal-body"
>
<span>
Communicating this information to the server
</span>
<img
src=
"{{ url_for('static', filename='img/loading.gif') }}"
width=
"40px"
>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"myModal2"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
data-backdrop=
"static"
data-keyboard=
"false"
>
<div
class=
"modal-dialog modal-sm"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
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