Fix remaining calculation

This commit is contained in:
Joseph Schorr 2013-10-18 20:23:41 -04:00
parent e3bb9165e3
commit 9541bfad5d
2 changed files with 4 additions and 4 deletions

View file

@ -373,9 +373,9 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope, $location, $tim
$scope.getMoreCount = function(changes) {
if (!changes) { return 0; }
var addedDisplayed = Math.min(15, changes.added.length);
var removedDisplayed = Math.min(15, changes.removed.length);
var changedDisplayed = Math.min(15, changes.changed.length);
var addedDisplayed = Math.min(5, changes.added.length);
var removedDisplayed = Math.min(5, changes.removed.length);
var changedDisplayed = Math.min(5, changes.changed.length);
return (changes.added.length + changes.removed.length + changes.changed.length) -
addedDisplayed - removedDisplayed - changedDisplayed;

View file

@ -140,7 +140,7 @@
</span>
</div>
<div id="collapseChanges" class="panel-collapse collapse out">
<div id="collapseChanges" class="panel-collapse collapse in">
<div class="well well-sm">
<div class="change added" ng-repeat="file in currentImageChanges.added | limitTo:5">
<i class="icon-plus-sign-alt"></i>