summaryrefslogtreecommitdiff
path: root/web-static/socket.html
diff options
context:
space:
mode:
Diffstat (limited to 'web-static/socket.html')
-rw-r--r--web-static/socket.html3
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>