Skip to content
Snippets Groups Projects
Commit 0a7d50d7 authored by Mathias Bjerkan's avatar Mathias Bjerkan
Browse files

Merge branch 'del1-oppgave3' into 'master'

Div endringer

See merge request !18
parents a2bfa04a d89e3023
No related branches found
No related tags found
1 merge request!18Div endringer
Pipeline #158969 passed
......@@ -31,6 +31,7 @@
<ul id="userList">
<li onclick="openCalculator(); toggleUserList();"><i class="fas fa-user userIcon"></i>Kalkulator</li>
<li onclick="openNewGroupChatForm();"><i class="fas fa-plus userIcon">Gruppesamtale</i></li>
</ul>
<ul id="groupChatList">
......
......@@ -8,7 +8,10 @@ document.getElementById("cancelButton").addEventListener("click", function(){
*/
function editUser (event) {
event.preventDefault();
let newInformation = {};
let newInformation = {
"username": document.getElementById("newUsername").value,
"password": document.getElementById("newPassword").value
};
fetch('../api/user/'+sessionStorage.getItem("userId"), {
method: "PUT",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment