diff --git a/WebContent/sound-chat/localization/enUs.json b/WebContent/sound-chat/localization/enUs.json index 6e40ad2..f94ebea 100644 --- a/WebContent/sound-chat/localization/enUs.json +++ b/WebContent/sound-chat/localization/enUs.json @@ -29,6 +29,5 @@ enUs = { labelButtonSendMessage: "Send message", labelTyping: "typing ...", labelTTSRoom: "people in the conversation", - labelTTSTyping: "typing", labelLoadError: "Could not load data from the server" }; \ No newline at end of file diff --git a/WebContent/sound-chat/localization/esEs.json b/WebContent/sound-chat/localization/esEs.json index 6c517a6..e6dc086 100644 --- a/WebContent/sound-chat/localization/esEs.json +++ b/WebContent/sound-chat/localization/esEs.json @@ -29,6 +29,5 @@ esEs = { labelButtonSendMessage: "Enviar mensagem", labelTyping: "Escribiendo ...", labelTTSRoom: "personas en la conversación", - labelTTSTyping: "Escribiendo", labelLoadError: "No se pudo cargar datos del servidor" }; \ No newline at end of file diff --git a/WebContent/sound-chat/localization/ptBr.json b/WebContent/sound-chat/localization/ptBr.json index 1179b9a..7b25bb2 100644 --- a/WebContent/sound-chat/localization/ptBr.json +++ b/WebContent/sound-chat/localization/ptBr.json @@ -29,6 +29,5 @@ ptBr = { labelButtonSendMessage: "Enviar mensagem", labelTyping: "Digitando ...", labelTTSRoom: "pessoas na conversa", - labelTTSTyping: "digitando", labelLoadError: "Não foi possível carregar dados do servidor" }; \ No newline at end of file diff --git a/WebContent/sound-chat/sound-chat.html b/WebContent/sound-chat/sound-chat.html index fdff752..7f54f37 100755 --- a/WebContent/sound-chat/sound-chat.html +++ b/WebContent/sound-chat/sound-chat.html @@ -54,7 +54,7 @@ - +
{{localization.labelButtonLogin}}
diff --git a/WebContent/sound-chat/sound-chat.js b/WebContent/sound-chat/sound-chat.js index 71dc8e8..65b751e 100755 --- a/WebContent/sound-chat/sound-chat.js +++ b/WebContent/sound-chat/sound-chat.js @@ -95,6 +95,15 @@ Polymer({ } }, + /** + * Enable login with the user press enter/return button in login name field + */ + enterEvent: function(event){ + if (event.keyCode === 13){ + this.loginAction(); + } + }, + /** * Method used to send a message to other users */ @@ -203,7 +212,7 @@ Polymer({ this.updateScroll(); if (this.countTypingMessages == 20){ - this.speechMessage.text = data.user + " " + this.localization.labelTTSTyping; + this.speechMessage.text = data.user; this.playTTS(this.speechMessage, "typing"); this.countTypingMessages--; }