diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-17 17:51:02 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-17 17:51:02 (GMT) |
commit | d6cf861d9db69584f33c464e76c8387c9099fafb (patch) | |
tree | a7926c1dd68de7ff51ea257568af860a1666f77d /web-static | |
parent | a285f48464bfff2fb5cddbbe5c1024e285b4c431 (diff) |
change semantic of websocket list command, which now sends add/remove updates without requesting it
Diffstat (limited to 'web-static')
-rw-r--r-- | web-static/socket.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web-static/socket.html b/web-static/socket.html index 712fd97..206ab44 100644 --- a/web-static/socket.html +++ b/web-static/socket.html @@ -28,12 +28,12 @@ this.sock = new WebSocket("ws://localhost:4080/public/socket"); this.sock_onmessage = function (event) { $('#listmsg').text(event.data); - this.sock.close(); } this.sock.onmessage = this.sock_onmessage.bind(this); this.sock_onopen = function() { this.sock.send(JSON.stringify(this.req)); + $('#buttonlist').attr('disabled','disabled') } this.sock.onopen = this.sock_onopen.bind(this); } @@ -140,6 +140,7 @@ function init() { $('#sessionid').val(""); buttonsIdle(); + $('#buttonlist').removeAttr('disabled','disabled') } </script> </head> |