Skip to content

Commit

Permalink
wait for http response
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Jun 26, 2013
1 parent 4f97c86 commit 3ae93d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion node_modules/zygote/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions server.coffee
Expand Up @@ -57,8 +57,7 @@ app.post '/post/new', ( req, res ) ->
req.on 'end', =>
@data = JSON.parse @fullBody
@model = new Post
@post = @model.create @data
res.end 'ok'
@post = @model.create @data, res

$('#post-save').click =>
@model = new Post
Expand Down

0 comments on commit 3ae93d7

Please sign in to comment.