Fix the collapsed node title to show the correct number of images

This commit is contained in:
Joseph Schorr 2013-10-17 15:39:24 -04:00
parent ce458f93ef
commit d6216dcc5f

View file

@ -350,7 +350,7 @@ ImageHistoryTree.prototype.collapseNodes_ = function(node) {
if (encountered.length >= 3) {
// Collapse the node.
var collapsed = {
"name": '(' + encountered.length + ' images)',
"name": '(' + (encountered.length - 1) + ' images)',
"children": [current],
"collapsed": true,
"encountered": encountered