Skip to content

Commit

Permalink
fixing read data json from APi
Browse files Browse the repository at this point in the history
  • Loading branch information
hengkiardo committed Sep 12, 2014
1 parent eb693f1 commit 8d994b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/js/apps/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var Home = App.Home = {
}
})
.done(function(res) {
var list_tricks = res.data.tricks;
var list_tricks = res.tricks;

App.Trick.renderTrick(el, list_tricks);

Expand Down
4 changes: 2 additions & 2 deletions public/js/apps/trick.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ var Trick = App.Trick = {
}
})
.done(function(res) {
var list_tricks = res.data.tricks;
var tricks_count = res.data.tricks_count;
var list_tricks = res.tricks;
var tricks_count = res.tricks_count;

Trick.renderTrick(el, list_tricks);

Expand Down

0 comments on commit 8d994b2

Please sign in to comment.