aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/scripts/chat.js
diff options
context:
space:
mode:
authorMarvin Borner2019-02-24 17:04:43 +0100
committerMarvin Borner2019-02-24 17:04:43 +0100
commit805e68a4d2402e25d63ee6c9838f8043c39de559 (patch)
treee77b2673280284acfaca4a101e379f2ad7487996 /public/scripts/chat.js
parent0bd4323f6adee6b295f57acb6c53ab416cdef6c9 (diff)
Improved frontend
Diffstat (limited to 'public/scripts/chat.js')
-rw-r--r--public/scripts/chat.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/scripts/chat.js b/public/scripts/chat.js
index 2f15683..86044be 100644
--- a/public/scripts/chat.js
+++ b/public/scripts/chat.js
@@ -380,6 +380,13 @@ function chat() {
});
}
+ function addContactToList(contactId) {
+ $('#contact_list')
+ .append(`<column><button class="button action-button is-big is-outlined is-white is-centered" id="peer_${contactId}"><i class="fas fa-user"></i></button></column>`);
+ }
+
+ addContactToList('TEST');
+
/**
* Shows modal for adding a contact
* TODO: Fix selecting from dropdown on enter