aboutsummaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authorMarvin Borner2019-02-25 18:41:55 +0100
committerMarvin Borner2019-02-25 18:41:55 +0100
commita17485261bcc89e8c5cf5d7b62c06494c0781a7a (patch)
tree0c5adc8dce46069ec79b996c9fa4ffa854901bd0 /public
parent106e29607f85663e6fe224bed0ff3a41d6b6e5cf (diff)
Added onclick listener
Diffstat (limited to 'public')
-rw-r--r--public/scripts/chat.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/scripts/chat.js b/public/scripts/chat.js
index d1b6f88..65e1a98 100644
--- a/public/scripts/chat.js
+++ b/public/scripts/chat.js
@@ -401,6 +401,9 @@ function chat() {
</button>
</column>
`);
+ $(`[data-peer="${peerObj.peer_id}"]`)
+ .off('click')
+ .on('click', () => connect(peerObj.peer_id));
}
});
$('[data-peer]')