diff --git a/src/app/static/ws_listener.js b/src/app/static/ws_listener.js index 3909d81..de71ca8 100644 --- a/src/app/static/ws_listener.js +++ b/src/app/static/ws_listener.js @@ -11,7 +11,17 @@ $('#container').on('click', '.anchor', ( function (event) { console.log(data); ws.send(data); })); + +$('form#anchor_login_event').on('submit', (function (event) { + event.preventDefault(); + let anchorName = $(this).attr('id').replace('_event', ''); + $.post( + $(this).attr('action'), + $(this).serialize(), + function (data) {} + ); +})); })); ws.onmessage = function (messageEvent) {