minor reformatting
This commit is contained in:
parent
d64d2fbe76
commit
7ad879d86f
1 changed files with 5 additions and 4 deletions
|
|
@ -132,7 +132,10 @@ class Chat extends Actor with Logging {
|
|||
@Consumes(Array("application/x-www-form-urlencoded"))
|
||||
@POST
|
||||
@Produces(Array("text/html"))
|
||||
def publishMessage(form: MultivaluedMap[String, String]) = (this !! Chat(form.getFirst("name"), form.getFirst("action"), form.getFirst("message"))).getOrElse("System__error")
|
||||
def publishMessage(form: MultivaluedMap[String, String]) =
|
||||
(this !! Chat(form.getFirst("name"),
|
||||
form.getFirst("action"),
|
||||
form.getFirst("message"))).getOrElse("System__error")
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -148,8 +151,6 @@ class JsonpFilter extends BroadcastFilter[String] with Logging {
|
|||
}
|
||||
|
||||
("<script type='text/javascript'>\n (window.app || window.parent.app).update({ name: \"" +
|
||||
name + "\", message: \"" +
|
||||
message +
|
||||
"\" }); \n</script>\n")
|
||||
name + "\", message: \"" + message + "\" }); \n</script>\n")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue