Commit fa430eba84628267822e5e4b35121ef1f1cf4be7
1 parent
c6ac1ffcfc
Exists in
master
and in
1 other branch
hide card properly updates feed
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
scripts/FeedController.js
View file @
fa430eb
... | ... | @@ -78,12 +78,14 @@ |
78 | 78 | |
79 | 79 | $scope.hide = function(card) { |
80 | 80 | console.log('hiding card'); |
81 | - console.log(card); | |
82 | 81 | var found = -1; |
83 | 82 | for (i = 0; i < $scope.cardCols.length; i++) { |
84 | 83 | found = $scope.cardCols[i].indexOf(card); |
85 | 84 | if (found != -1) { |
86 | - $scope.cardCols[i].splice(found, 1); | |
85 | + $timeout(function() { | |
86 | + console.log('card to hide, found'); | |
87 | + }); | |
88 | + $scope.cardCols[i].splice(found, 1); | |
87 | 89 | return; |
88 | 90 | } |
89 | 91 | } |