Skip to content

Commit

Permalink
JS: Send action onblur as well as on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
fducroquet committed Jul 21, 2016
1 parent 40a6600 commit 9fa87e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gs-carcolor/src/main/resources/carcolorapp.js
Expand Up @@ -66,6 +66,12 @@ function onMessageReceived(evt) {
textContent : this.value
}));
}
elt.onblur = function (e) {
wsocket.send(JSON.stringify({
msgType : "A",
nodeId : this.id
}));
}
};
break;

Expand Down
6 changes: 6 additions & 0 deletions gs-reactor/src/main/resources/script.js
Expand Up @@ -59,6 +59,12 @@ function onMessageReceived(evt) {
textContent : this.value
}));
}
elt.onblur = function (e) {
wsocket.send(JSON.stringify({
msgType : "A",
nodeId : this.id
}));
}
};
break;

Expand Down

0 comments on commit 9fa87e8

Please sign in to comment.