From dcd084ac496fdfa3116bdcf78e696c7b526941d9 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 10 Apr 2017 15:56:35 +0530 Subject: [PATCH] added comment why we are redrecting user to index page on browser refresh. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index dd9e921..50e1884 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -568,12 +568,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $('#daImagePanel').css("left", '1px'); }, 350); - } + } } else - {console.log('Reload occured, Redirecting to landing page.') - $location.path('/'); - /*Code commented due to unavailability of modules list on 'da-view-list' view*/ + { + //for now we are redirecting user to index page on page refresh because on refresh we lost the rootscope data and some of application + //features stopped working which were depenedent of rootscope data like List manager, annotation toolbar, settings, usermodule list, etc. + + $location.path('/'); + + /*relaoding unavailable data for resolving refesh issue*/ /* console.log('Reloading json data for body view => BROWSER REFRESH ISSUE...'); $scope.loadDissectibleAnatomyData(); -- libgit2 0.21.4