Skip to content
Snippets Groups Projects
Commit 838e6fb4 authored by Albertus Djauhari Djohan's avatar Albertus Djauhari Djohan
Browse files

Fix enter to send chat

parent e4b6f940
Branches message_system
1 merge request!2Message System
......@@ -69,6 +69,8 @@
}
function send2(e) {
if (e.keyCode == 13) {
var sender = document.getElementById("sender").value;
var receiver = document.getElementById("receiver").value;
var message = document.getElementById("message").value;
if (message != "") {
myFirebase.push({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment