From 79d0898fb528134c537ec8537678b6e4a0a2273a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 5 Feb 2015 19:33:58 +0100 Subject: [PATCH] Add a screenshot page --- front/src/js/controllers/screenshotCtrl.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/front/src/js/controllers/screenshotCtrl.js b/front/src/js/controllers/screenshotCtrl.js index 78abc21..57d7632 100644 --- a/front/src/js/controllers/screenshotCtrl.js +++ b/front/src/js/controllers/screenshotCtrl.js @@ -16,13 +16,12 @@ screenshotCtrl.controller('ScreenshotCtrl', ['$scope', '$rootScope', '$routePara }); } else { $scope.result = $rootScope.loadedResult; - init(); } } - function init() { - - } + $scope.backToDashboard = function() { + $location.path('/result/' + $scope.runId); + }; $scope.testAgain = function() { Runs.save({