Permalink
Browse files

client-side updates

  • Loading branch information...
1 parent 983ba16 commit 0195eb6d7dc81c9902ab6bf98c9ccf68114d0fb5 @jamesward committed Apr 28, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 app/assets/javascripts/index.coffee
  2. +1 −1 app/views/index.scala.html
  3. +1 −2 app/views/main.scala.html
  4. +2 −2 conf/routes
  5. +2 −1 project/Build.scala
@@ -1,4 +1,4 @@
$ ->
- $.get "/listBars", (data) ->
+ $.get "/bars", (data) ->
$.each data, (index, item) ->
- $("#bars").append "<li>Bar " + item.name + "</li>"
+ $("#bars").append $("<li>").text item.name
@@ -1,4 +1,4 @@
-@(form: play.api.data.Form[String])
+@(form: play.api.data.Form[Bar])
@main("Welcome to Play 2.0") {
@@ -5,9 +5,8 @@
<html>
<head>
<title>@title</title>
- <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
- <script src="@routes.Assets.at("javascripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
+ <script src="@routes.Assets.at("javascripts/jquery.min.js")" type="text/javascript"></script>
</head>
<body>
@content
View
@@ -4,8 +4,8 @@
# Home page
GET / controllers.Application.index
-GET /listBars controllers.Application.listBars
-POST /addBar controllers.Application.addBar
+GET /bars controllers.Application.getBars
+POST /bars controllers.Application.addBar
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
View
@@ -8,7 +8,8 @@ object ApplicationBuild extends Build {
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
- "net.vz.mongodb.jackson" %% "play-mongo-jackson-mapper" % "1.0.0-SNAPSHOT"
+ "org.squeryl" %% "squeryl" % "0.9.5",
+ "com.jquery" % "jquery" % "1.7.1"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(

0 comments on commit 0195eb6

Please sign in to comment.