From ace813d88dc49ea99f7a7a0ec3034a5620398855 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Wed, 16 Oct 2013 22:49:37 -0400 Subject: [PATCH] Call setTag in the right place. Remove spurious console logging. --- static/js/controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/controllers.js b/static/js/controllers.js index 5a0892068..ae9ef738c 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -317,12 +317,13 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) { $scope.tree = new ImageHistoryTree(namespace, name, resp.images, $scope.getCommentFirstLine, $scope.getTimeSince); + $scope.tree.draw('image-history-container'); + // If we already have a tag, use it if ($scope.currentTag) { $scope.tree.setTag($scope.currentTag.name); } - $scope.tree.draw('image-history-container'); $($scope.tree).bind('tagChanged', function(e) { $scope.$apply(function() { $scope.setTag(e.tag); }); }); @@ -353,7 +354,6 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) { } if (proposedTag) { - console.log('Setting tag to: ' + proposedTag.name); $scope.currentTag = proposedTag; $scope.currentImage = $scope.currentTag.image; if ($scope.tree) {