diff --git a/gs-carcolor/src/main/resources/carcolorapp.js b/gs-carcolor/src/main/resources/carcolorapp.js index 72d43bd4b..725e90a36 100644 --- a/gs-carcolor/src/main/resources/carcolorapp.js +++ b/gs-carcolor/src/main/resources/carcolorapp.js @@ -66,6 +66,12 @@ function onMessageReceived(evt) { textContent : this.value })); } + elt.onblur = function (e) { + wsocket.send(JSON.stringify({ + msgType : "A", + nodeId : this.id + })); + } }; break; diff --git a/gs-reactor/src/main/resources/script.js b/gs-reactor/src/main/resources/script.js index 2b96dae14..f19a7eccc 100644 --- a/gs-reactor/src/main/resources/script.js +++ b/gs-reactor/src/main/resources/script.js @@ -59,6 +59,12 @@ function onMessageReceived(evt) { textContent : this.value })); } + elt.onblur = function (e) { + wsocket.send(JSON.stringify({ + msgType : "A", + nodeId : this.id + })); + } }; break;