From 35ce95a94a75f917190a6331e3dd62396d621354 Mon Sep 17 00:00:00 2001 From: Stuart Swope Date: Thu, 8 Sep 2016 15:27:26 -0700 Subject: [PATCH 1/2] Fix session typo in taskDispatcher. --- dispatcher/taskDispatcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispatcher/taskDispatcher.js b/dispatcher/taskDispatcher.js index 69faded..d1d0918 100644 --- a/dispatcher/taskDispatcher.js +++ b/dispatcher/taskDispatcher.js @@ -35,7 +35,7 @@ module.exports = { } }); } else { - serverResponse.status(401).send('User sesion invalidated'); + serverResponse.status(401).send('User session invalidated'); } }, // Adds a comments for a given task. Task id is part of the url and comment is send at the request body. Here we From b80a007384c2c0854db8b1a00fd7c0cad8d0ce4e Mon Sep 17 00:00:00 2001 From: Stuart Swope Date: Tue, 20 Sep 2016 17:09:07 -0700 Subject: [PATCH 2/2] Back button on task detail page now works after page reload. Back button always goes to tasks list page so it's not worth trying to track the referrer so the link is hard coded. --- public/js/app.js | 7 ------- public/view/task_detail.html | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 48cff12..454e61a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -32,13 +32,6 @@ myTasks.config(['$routeProvider', } ]); -// Store the current page for back navigation -myTasks.run(function($rootScope, $location) { - $rootScope.$on("$locationChangeStart", function(event, next, current) { - $rootScope.referrer = current; - }); -}); - // Filter function to check whether an object is empty myTasks.filter('isEmpty', function () { return function (obj) { diff --git a/public/view/task_detail.html b/public/view/task_detail.html index d7531a8..13e9f1c 100644 --- a/public/view/task_detail.html +++ b/public/view/task_detail.html @@ -2,7 +2,7 @@