Skip to content

Commit

Permalink
Merge pull request #7 from EdmundMai/master
Browse files Browse the repository at this point in the history
fixed ajax bug
  • Loading branch information
EdmundMai committed Feb 9, 2014
2 parents d942fbf + 89b7a5b commit 6bbfe1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/welcome/request_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
data: "amount="+amount,
success: function (res) {
console.log(res);
$("div.container").append("<div class='item'><h2>"+ res.title +"</h2><span class='left right-1'><img src='"+res.avatar+"' width='100'></span><h2>"+res.amount+"</h2><div>less than a minute ago</div></div><div class='clear'></div>");
$("div.container").append("<div class='item'><h2>"+ res.title +"</h2><span class='left right-1'><img src='"+res.avatar+"' width='100'></span><h2>Sardines ("+res.amount+") cans</h2><div>less than a minute ago</div></div><div class='clear'></div>");
$("#amount").val("");
}
});
Expand Down

0 comments on commit 6bbfe1a

Please sign in to comment.