Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
e32c0fcc
Commit
e32c0fcc
authored
Dec 10, 2019
by
Wolfgang Knopki
Browse files
change of header if email is valid
parent
eb839e6c
Changes
2
Show whitespace changes
Inline
Side-by-side
public/js/account.js
View file @
e32c0fcc
...
@@ -23,6 +23,12 @@ $.get( "/api/v1/profile", function(data) {
...
@@ -23,6 +23,12 @@ $.get( "/api/v1/profile", function(data) {
$
(
"
#inputIndustry
"
).
val
(
industry
);
$
(
"
#inputIndustry
"
).
val
(
industry
);
$
(
"
#inputOrganisation
"
).
val
(
organisation
);
$
(
"
#inputOrganisation
"
).
val
(
organisation
);
$
(
"
#inputSpeciality
"
).
val
(
speciality
);
$
(
"
#inputSpeciality
"
).
val
(
speciality
);
// check for valid email and then change header accordingly:
if
(
email
!=
''
){
document
.
getElementById
(
"
navbarDropdown4
"
).
innerHTML
=
"
Logout
"
;
document
.
getElementById
(
"
navbarDropdown4
"
).
href
=
"
/account/logout
"
;
}
})
})
.
done
(
function
()
{
.
done
(
function
()
{
console
.
log
(
"
done
"
);
console
.
log
(
"
done
"
);
...
...
routes/routes.js
View file @
e32c0fcc
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