Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SE577
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dmz39
SE577
Commits
6fe0a24c
Commit
6fe0a24c
authored
Mar 19, 2020
by
dmz39
Browse files
Options
Downloads
Patches
Plain Diff
Adding missing javascript update for new users
parent
6984b8af
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/static/js/user.js
+14
-1
14 additions, 1 deletion
src/main/resources/static/js/user.js
with
14 additions
and
1 deletion
src/main/resources/static/js/user.js
+
14
−
1
View file @
6fe0a24c
function
addUser
()
{
function
addUser
()
{
$
.
get
(
"
/user/new
"
,
{
$
.
get
(
"
/user/new
"
,
{
firstName
:
$
(
"
#fname
"
).
val
(),
firstName
:
$
(
"
#fname
"
).
val
(),
lastName
:
$
(
"
#lname
"
).
val
()
lastName
:
$
(
"
#lname
"
).
val
(),
phoneNumber
:
$
(
"
#phNumber
"
).
val
()
},
function
()
{
},
function
()
{
console
.
log
(
"
Add User Completed
"
);
console
.
log
(
"
Add User Completed
"
);
});
});
}
}
function
saveUser
()
{
$
.
post
(
"
/user/save
"
,
{
firstName
:
$
(
"
#editfname
"
).
val
(),
lastName
:
$
(
"
#editlname
"
).
val
(),
phoneNumber
:
$
(
"
#editphNumber
"
).
val
()
});
}
function
addAddress
(
isBilling
)
{
function
addAddress
(
isBilling
)
{
console
.
log
(
isBilling
);
console
.
log
(
isBilling
);
wait
(
5000
);
wait
(
5000
);
...
@@ -27,6 +36,10 @@ function wait(ms){
...
@@ -27,6 +36,10 @@ function wait(ms){
}
}
}
}
function
showEditModal
()
{
$
(
'
#editAccountModal
'
).
modal
(
'
show
'
);
}
function
deleteAddress
(
index
)
{
function
deleteAddress
(
index
)
{
var
name
=
$
(
'
#
'
+
index
).
find
(
"
#addrName
"
).
html
();
var
name
=
$
(
'
#
'
+
index
).
find
(
"
#addrName
"
).
html
();
var
addr1
=
$
(
'
#
'
+
index
).
find
(
"
#addrLine1
"
).
html
();
var
addr1
=
$
(
'
#
'
+
index
).
find
(
"
#addrLine1
"
).
html
();
...
...
...
...
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
sign in
to comment