From 5656e8503d4f39ea116e1920cb6c9a1dfb0cd2a0 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 8 Nov 2013 14:06:57 -0500 Subject: [PATCH 1/2] Remove unnecessary call --- static/js/graphing.js | 1 - 1 file changed, 1 deletion(-) diff --git a/static/js/graphing.js b/static/js/graphing.js index 5058c32eb..290c9f2ad 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -566,7 +566,6 @@ ImageHistoryTree.prototype.update_ = function(source) { // Translate the foreign object so the tags are under the ID. fo.attr("transform", function(d, i) { - bbox = this.getBBox() return "translate(" + [-130, 0 ] + ")"; }); From 9f7b1347efb3eacfe49128fa58f0eb7a0c348718 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 8 Nov 2013 15:58:21 -0500 Subject: [PATCH 2/2] Add support for having the 'namespace' URL param override the cookie in the namespace selector --- static/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index b20117e6a..207ef56f0 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -728,7 +728,7 @@ quayApp.directive('namespaceSelector', function () { 'namespace': '=namespace', 'requireCreate': '=requireCreate' }, - controller: function($scope, $element, $cookieStore) { + controller: function($scope, $element, $routeParams, $cookieStore) { $scope.namespaces = {}; $scope.initialize = function(user) { @@ -740,7 +740,7 @@ quayApp.directive('namespaceSelector', function () { } } - var initialNamespace = $cookieStore.get('quay.currentnamespace') || $scope.user.username; + var initialNamespace = $routeParams['namespace'] || $cookieStore.get('quay.currentnamespace') || $scope.user.username; $scope.namespaces = namespaces; $scope.setNamespace($scope.namespaces[initialNamespace]); };