diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-21 18:13:31 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-21 18:13:55 +0200 |
commit | 6b8cec9fbe1b2656597ba321246ac608940ed980 (patch) | |
tree | 813c71f5fefc81e4a08c76454b01a28000215845 /src/ws/view.js | |
parent | 52e40517a51637bee9a5780259b88ee3f28599a2 (diff) |
Fix unsubscribe, which didn't remove the board root node.
Diffstat (limited to 'src/ws/view.js')
-rw-r--r-- | src/ws/view.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ws/view.js b/src/ws/view.js index 8e349d5..b8ef19a 100644 --- a/src/ws/view.js +++ b/src/ws/view.js @@ -37,6 +37,15 @@ function getBoard(subscribeid) return board; } +function removeBoard(subscribeid) +{ + var board = document.getElementById("board_" + subscribeid); + if(board) + { + boards.removeChild(board); + } +} + ////////////////////////////////////////////////////// ////////////////////////////////////////////////////// |