diff options
author | Marvin Borner | 2019-02-25 18:41:55 +0100 |
---|---|---|
committer | Marvin Borner | 2019-02-25 18:41:55 +0100 |
commit | a17485261bcc89e8c5cf5d7b62c06494c0781a7a (patch) | |
tree | 0c5adc8dce46069ec79b996c9fa4ffa854901bd0 /public | |
parent | 106e29607f85663e6fe224bed0ff3a41d6b6e5cf (diff) |
Added onclick listener
Diffstat (limited to 'public')
-rw-r--r-- | public/scripts/chat.js | 3 |
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]') |