From d42abfef989a8c0821719654a18a02af666e86e4 Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Fri, 26 Jun 2015 12:58:16 -0700 Subject: [PATCH] [Addressability] Comments Added comments to the slight change in Browse Controller and BrowseObjectController. WTD 25. --- platform/commonUI/browse/src/BrowseController.js | 2 ++ platform/commonUI/browse/src/BrowseObjectController.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/platform/commonUI/browse/src/BrowseController.js b/platform/commonUI/browse/src/BrowseController.js index c23e1ed192..3ec38057fc 100644 --- a/platform/commonUI/browse/src/BrowseController.js +++ b/platform/commonUI/browse/src/BrowseController.js @@ -52,6 +52,8 @@ define( unlisten; unlisten = $scope.$on('$locationChangeSuccess', function () { + // Checks path to make sure /browse/ is at front + // if so, change $route.current if ($location.path().indexOf("/browse/") === 0) { $route.current = priorRoute; } diff --git a/platform/commonUI/browse/src/BrowseObjectController.js b/platform/commonUI/browse/src/BrowseObjectController.js index 45de28b767..1826120458 100644 --- a/platform/commonUI/browse/src/BrowseObjectController.js +++ b/platform/commonUI/browse/src/BrowseObjectController.js @@ -54,6 +54,8 @@ define( if (viewKey) { $location.search('view', viewKey); unlisten = $scope.$on('$locationChangeSuccess', function () { + // Checks path to make sure /browse/ is at front + // if so, change $route.current if ($location.path().indexOf("/browse/") === 0) { $route.current = priorRoute; }