Commit dcd084ac496fdfa3116bdcf78e696c7b526941d9

Authored by Nikita Kulshreshtha
1 parent ef0c0bf3

added comment why we are redrecting user to index page on browser refresh.

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -568,12 +568,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -568,12 +568,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
568 $('#daImagePanel').css("left", '1px'); 568 $('#daImagePanel').css("left", '1px');
569 569
570 }, 350); 570 }, 350);
571 - } 571 + }
572 } 572 }
573 else 573 else
574 - {console.log('Reload occured, Redirecting to landing page.')  
575 - $location.path('/');  
576 - /*Code commented due to unavailability of modules list on 'da-view-list' view*/ 574 + {
  575 + //for now we are redirecting user to index page on page refresh because on refresh we lost the rootscope data and some of application
  576 + //features stopped working which were depenedent of rootscope data like List manager, annotation toolbar, settings, usermodule list, etc.
  577 +
  578 + $location.path('/');
  579 +
  580 + /*relaoding unavailable data for resolving refesh issue*/
577 /* console.log('Reloading json data for body view => BROWSER REFRESH ISSUE...'); 581 /* console.log('Reloading json data for body view => BROWSER REFRESH ISSUE...');
578 $scope.loadDissectibleAnatomyData(); 582 $scope.loadDissectibleAnatomyData();
579 583