[Addressability] Comments
Added comments to the slight change in Browse Controller and BrowseObjectController. WTD 25.
This commit is contained in:
@@ -52,6 +52,8 @@ define(
|
|||||||
unlisten;
|
unlisten;
|
||||||
|
|
||||||
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
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) {
|
if ($location.path().indexOf("/browse/") === 0) {
|
||||||
$route.current = priorRoute;
|
$route.current = priorRoute;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ define(
|
|||||||
if (viewKey) {
|
if (viewKey) {
|
||||||
$location.search('view', viewKey);
|
$location.search('view', viewKey);
|
||||||
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
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) {
|
if ($location.path().indexOf("/browse/") === 0) {
|
||||||
$route.current = priorRoute;
|
$route.current = priorRoute;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user