From c62ac39da67fe9d4cdef8ac4daff3a796206dd10 Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 10 Feb 2017 11:06:06 +0530 Subject: [PATCH] on page refresh no value found in rootcope so as the currentodyViewId used in Navigator image. Now if not foud in rootscopewe are getting from localstorage --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 75cd7e0..f4732b7 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -735,6 +735,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //Code for displaying NavigatorImage for BodyView $scope.LoadBodyViewNavigatorImage = function () { + + if ($rootScope.currentBodyViewId == undefined || $rootScope.currentBodyViewId == null) { + $rootScope.currentBodyViewId = localStorage.getItem("currentBodyViewId"); + } console.log('insideLoadBodyViewNavigatorImage') var NavigatorManJsonPath = '~/../content/data/json/da/da_dat_orient_image.json'; -- libgit2 0.21.4