Skip to content
Snippets Groups Projects
Commit 6fe0a24c authored by dmz39's avatar dmz39
Browse files

Adding missing javascript update for new users

parent 6984b8af
Branches
No related tags found
No related merge requests found
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();
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment