Commit f628844018e776a788b23daa307beafc4190d055

Authored by Amrita Vishnoi
2 parents c80c88f8 039f8257

Merge branch 'urlpasteanotherbrowser' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js
... ... @@ -6,7 +6,10 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location
6 6 $scope.threeDAnatomyData;
7 7 $scope.Id;
8 8 $scope.$on('$viewContentLoaded', function (event) {
9   -
  9 +
  10 + if ($rootScope.refreshcheck == null) {
  11 + $location.path('/');
  12 + }
10 13 $scope.scroll();
11 14 var promise = DataService.getJson('~/../content/data/json/3da/3da_dat_contentlist.json')
12 15 promise.then(
... ... @@ -87,7 +90,11 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location
87 90 }
88 91  
89 92 $scope.Open3DModelBody = function () {
90   -
  93 +
  94 + if ($rootScope.refreshcheck == null) {
  95 + $location.path('/');
  96 +
  97 + }
91 98 $rootScope.isLoading = true;
92 99 $('#spinner').css('visibility', 'visible');
93 100 //alert(localStorage.getItem("currentBodyViewId"));
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/ADAMImgController.js
... ... @@ -12,7 +12,10 @@ function ($scope, $rootScope, pages, log, $location) {
12 12 //alert("scroll");
13 13 }
14 14 $scope.$on('$viewContentLoaded', function (event) {
15   -
  15 +
  16 + if ($rootScope.refreshcheck == null) {
  17 + $location.path('/');
  18 + }
16 19 // code that will be executed ...
17 20 // every time this view is loaded
18 21  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/AODController.js
... ... @@ -19,7 +19,11 @@ function ($scope, $rootScope, pages, log, $location) {
19 19 //$rootScope.currentActiveModuleTitle = pages[10].name;
20 20  
21 21 $scope.$on('$viewContentLoaded', function (event) {
22   -
  22 +
  23 + if ($rootScope.refreshcheck == null) {
  24 + $location.path('/');
  25 + }
  26 +
23 27 // code that will be executed ...
24 28 // every time this view is loaded
25 29  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... ... @@ -29,6 +29,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
29 29 $scope.$on('$viewContentLoaded', function (event) {
30 30  
31 31  
  32 + if ($rootScope.refreshcheck == null) {
  33 + $location.path('/');
  34 + }
32 35 // code that will be executed ...
33 36 // every time this view is loaded
34 37  
... ... @@ -462,7 +465,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
462 465 }
463 466  
464 467 $scope.openBodyView = function () {
465   -
  468 +
  469 + if ($rootScope.refreshcheck == null) {
  470 + $location.path('/');
  471 + }
  472 +
466 473 if ($rootScope.disableAnnotationTB == true)
467 474 {
468 475 $('#AnnotaionPopupDiv').find('input, textarea, button, select,img,div').attr('disabled', 'disabled');
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... ... @@ -32,7 +32,10 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
32 32 };
33 33  
34 34 $scope.$on('$viewContentLoaded', function (event) {
35   -
  35 +
  36 + if ($rootScope.refreshcheck == null) {
  37 + $location.path('/');
  38 + }
36 39 // code that will be executed ...
37 40 // every time this view is loaded
38 41  
... ... @@ -531,7 +534,12 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
531 534 }
532 535  
533 536 $scope.openBodyView = function () {
534   -
  537 +
  538 +
  539 + if ($rootScope.refreshcheck == null) {
  540 + $location.path('/');
  541 + }
  542 +
535 543 $rootScope.isLoading = true;
536 544 $('#spinner').css('visibility', 'visible');
537 545 $scope.voId = localStorage.getItem("currentBodyViewId");
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
... ... @@ -19,7 +19,10 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location) {
19 19 }
20 20 //load json data
21 21 $scope.loadCurriculumBuiderData = function () {
22   -
  22 +
  23 + if ($rootScope.refreshcheck == null) {
  24 + $location.path('/');
  25 + }
23 26 //get current path
24 27 var currentURL = $location.path();
25 28 var selectedModuleName = '';
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -376,7 +376,10 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
376 376  
377 377 //load json data for body view
378 378 $scope.loadDissectibleAnatomyData = function () {
379   -
  379 +
  380 + if ($rootScope.refreshcheck == null) {
  381 + $location.path('/');
  382 + }
380 383 //get current path
381 384 var currentURL = $location.path();
382 385 var selectedModuleName = '';
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -132,6 +132,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
132 132  
133 133 $rootScope.userModules = UserModules;
134 134 $rootScope.isVisibleLogin = false;
  135 + $location.path('/');
135 136  
136 137 }
137 138 else {
... ... @@ -139,8 +140,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
139 140 $rootScope.isVisibleLogin = true;
140 141 // alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT);
141 142 $rootScope.errorMessage = LoginMessageConstants.USER_OR_PASSWORD_INCORRECT;
142   - $("#messageModal").modal('show');
143   -
  143 + $("#messageModal").modal('show');
144 144 }
145 145 else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) {
146 146 //alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS);
... ... @@ -167,6 +167,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
167 167 $rootScope.haveRoleAdmin = false;
168 168 localStorage.setItem('loggedInUserDetails', JSON.stringify(result));
169 169 $('#dvUserModulesInfo').modal('show');
  170 + $location.path('/');
170 171  
171 172 }
172 173 //else if ((!result.IsSubscriptionExpired) && (result.UserType== UserTypeConstants.CLIENT_ADMIN || result.UserType== UserTypeConstants.DISTRICT_ADMIN || result.UserType== UserTypeConstants.SINGLE_USER ||result.UserType== UserTypeConstants.RESELLER) && result.License.IsTermAccepted) {}
... ... @@ -181,6 +182,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
181 182 $rootScope.licenseeAccountNumber = result.License.AccountNumber;
182 183 localStorage.setItem('loggedInUserDetails', JSON.stringify(result));
183 184 $('#dvUserModulesInfo').modal('show');
  185 + $location.path('/');
184 186  
185 187 }
186 188 else {
... ... @@ -193,7 +195,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
193 195 $rootScope.userModules = result.Modules;
194 196 $rootScope.haveRoleAdmin = true;
195 197 $rootScope.licenseeAccountNumber = result.License.AccountNumber;
196   - localStorage.setItem('loggedInUserDetails', JSON.stringify(result));
  198 + localStorage.setItem('loggedInUserDetails', JSON.stringify(result));
  199 + $location.path('/');
197 200 }
198 201 }
199 202 else {
... ... @@ -203,6 +206,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
203 206 $rootScope.haveRoleAdmin = true;
204 207 localStorage.setItem('loggedInUserDetails', JSON.stringify(result));
205 208 $('#dvUserModulesInfo').modal('show');
  209 + $location.path('/');
206 210 }
207 211 }
208 212 else if ((!result.IsSubscriptionExpired) && (result.License != null) && (result.License.IsActive) && !result.IsActive) {
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... ... @@ -13,7 +13,10 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location
13 13 $scope.dragableId = "";
14 14 $scope.blReviewAttempt = false;
15 15 $scope.$on('$viewContentLoaded', function (event) {
16   -
  16 +
  17 + if ($rootScope.refreshcheck == null) {
  18 + $location.path('/');
  19 + }
17 20 // code that will be executed ...
18 21 // every time this view is loaded
19 22  
... ... @@ -89,7 +92,10 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location
89 92  
90 93  
91 94 $scope.GetQuizByTopic = function () {
92   -
  95 +
  96 + if ($rootScope.refreshcheck == null) {
  97 + $location.path('/');
  98 + }
93 99 var keywords = $location.search();
94 100 $scope.LabExerciseName = keywords.labexercise;
95 101 $scope.LabExerciseModules = null;
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/LinkController.js
1 1 'use strict';
2 2  
3   -AIA.controller("LinkController", ["$scope", "$rootScope", "$log", "pages", "$routeParams",
  3 +AIA.controller("LinkController", ["$scope", "$rootScope", "$log", "$location", "pages", "$routeParams",
4 4 function ($scope, $rootScope, log, $location, pages, $routeParams) {
5 5  
6 6 //$rootScope.currentActiveModuleTitle = Modules[10].Name;
... ... @@ -18,7 +18,10 @@ function ($scope, $rootScope, log, $location, pages, $routeParams) {
18 18  
19 19 $scope.$on('$viewContentLoaded', function (event) {
20 20  
21   -
  21 +
  22 + if ($rootScope.refreshcheck == null) {
  23 + $location.path('/');
  24 + }
22 25 // code that will be executed ...
23 26 // every time this view is loaded
24 27  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... ... @@ -105,7 +105,10 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
105 105 };
106 106  
107 107 $scope.loadForModuleById = function (moduleId) {
108   -
  108 +
  109 + if ($rootScope.refreshcheck == null) {
  110 + $location.path('/');
  111 + }
109 112 $scope.moduleId = moduleId;
110 113 $scope.activeTab = 1;
111 114 console.log('loadForModuleById is called')
... ... @@ -205,7 +208,10 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
205 208  
206 209  
207 210 $scope.openModuleItem = function () {
208   -
  211 +
  212 + if ($rootScope.refreshcheck == null) {
  213 + $location.path('/');
  214 + }
209 215 var jsContentURL;
210 216 var moduleItemViewDivId;
211 217  
... ...