Commit 70bc2f2ba8730d557226fea616f2e14ea53b07c9
1 parent
17dea17d
Exists in
master
and in
5 other branches
Fix events
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
js/main.js
| @@ -730,7 +730,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers | @@ -730,7 +730,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers | ||
| 730 | 730 | ||
| 731 | // FIXME fix api and remove this | 731 | // FIXME fix api and remove this |
| 732 | var article;//data.articles[0]; | 732 | var article;//data.articles[0]; |
| 733 | - for(var i=0, i<data.articles.length; i++) { | 733 | + for(var i=0; i<data.articles.length; i++) { |
| 734 | if($.grep(data.articles[i].categorues, function(e){ return e.id == cat_id; }).length>0) { | 734 | if($.grep(data.articles[i].categorues, function(e){ return e.id == cat_id; }).length>0) { |
| 735 | article = data.articles[i]; | 735 | article = data.articles[i]; |
| 736 | } | 736 | } |