Commit 20d4fd300417394596386cd3512712a0da255c95
1 parent
28509a30
Exists in
master
and in
2 other branches
Temporary fix: just return up to perPage proposals
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
www/js/controllers.js
... | ... | @@ -455,9 +455,11 @@ angular.module('confjuvapp.controllers', []) |
455 | 455 | var proposals = resp.data.articles; |
456 | 456 | |
457 | 457 | for (var i = 0; i < proposals.length; i++) { |
458 | - var proposal = proposals[i]; | |
459 | - proposal.topic = topic; | |
460 | - $scope.cards.push(proposal); | |
458 | + if (i < perPage) { | |
459 | + var proposal = proposals[i]; | |
460 | + proposal.topic = topic; | |
461 | + $scope.cards.push(proposal); | |
462 | + } | |
461 | 463 | } |
462 | 464 | |
463 | 465 | if (proposals.length == 0 && !topic.empty) { | ... | ... |