Commit 3d33aa29ceb6383011595bfab2bf4ee0663a3ad7
refershcheck variable name should change. For now merged the code
Showing
12 changed files
with
56 additions
and
8 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js
... | ... | @@ -6,6 +6,9 @@ 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 | + if ($rootScope.refreshcheck == null) { | |
10 | + $location.path('/'); | |
11 | + } | |
9 | 12 | $scope.scroll(); |
10 | 13 | var promise = DataService.getJson('~/../content/data/json/3da/3da_dat_contentlist.json') |
11 | 14 | promise.then( |
... | ... | @@ -86,7 +89,9 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location |
86 | 89 | } |
87 | 90 | |
88 | 91 | $scope.Open3DModelBody = function () { |
89 | - | |
92 | + if ($rootScope.refreshcheck == null) { | |
93 | + $location.path('/'); | |
94 | + } | |
90 | 95 | $rootScope.isLoading = true; |
91 | 96 | $('#spinner').css('visibility', 'visible'); |
92 | 97 | //alert(localStorage.getItem("currentBodyViewId")); | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/ADAMImgController.js
... | ... | @@ -12,6 +12,9 @@ function ($scope, $rootScope, pages, log, $location) { |
12 | 12 | //alert("scroll"); |
13 | 13 | } |
14 | 14 | $scope.$on('$viewContentLoaded', function (event) { |
15 | + if ($rootScope.refreshcheck == null) { | |
16 | + $location.path('/'); | |
17 | + } | |
15 | 18 | // code that will be executed ... |
16 | 19 | // every time this view is loaded |
17 | 20 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/AODController.js
... | ... | @@ -19,6 +19,9 @@ function ($scope, $rootScope, pages, log, $location) { |
19 | 19 | //$rootScope.currentActiveModuleTitle = pages[10].name; |
20 | 20 | |
21 | 21 | $scope.$on('$viewContentLoaded', function (event) { |
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/AnatTestController.js
... | ... | @@ -13,6 +13,9 @@ function ($scope, $rootScope, pages, log, $location) { |
13 | 13 | } |
14 | 14 | |
15 | 15 | $scope.$on('$viewContentLoaded', function (event) { |
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/CAController.js
... | ... | @@ -27,6 +27,10 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
27 | 27 | }; |
28 | 28 | |
29 | 29 | $scope.$on('$viewContentLoaded', function (event) { |
30 | + if ($rootScope.refreshcheck == null) { | |
31 | + $location.path('/'); | |
32 | + } | |
33 | + | |
30 | 34 | // code that will be executed ... |
31 | 35 | // every time this view is loaded |
32 | 36 | |
... | ... | @@ -460,7 +464,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
460 | 464 | } |
461 | 465 | |
462 | 466 | $scope.openBodyView = function () { |
463 | - | |
467 | + if ($rootScope.refreshcheck == null) { | |
468 | + $location.path('/'); | |
469 | + } | |
464 | 470 | if ($rootScope.disableAnnotationTB == true) |
465 | 471 | { |
466 | 472 | $('#AnnotaionPopupDiv').find('input, textarea, button, select,img,div').attr('disabled', 'disabled'); | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... | ... | @@ -32,6 +32,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
32 | 32 | }; |
33 | 33 | |
34 | 34 | $scope.$on('$viewContentLoaded', function (event) { |
35 | + if ($rootScope.refreshcheck == null) { | |
36 | + $location.path('/'); | |
37 | + } | |
35 | 38 | // code that will be executed ... |
36 | 39 | // every time this view is loaded |
37 | 40 | |
... | ... | @@ -530,7 +533,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
530 | 533 | } |
531 | 534 | |
532 | 535 | $scope.openBodyView = function () { |
533 | - | |
536 | + if ($rootScope.refreshcheck == null) { | |
537 | + $location.path('/'); | |
538 | + } | |
534 | 539 | $rootScope.isLoading = true; |
535 | 540 | $('#spinner').css('visibility', 'visible'); |
536 | 541 | $scope.voId = localStorage.getItem("currentBodyViewId"); | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
... | ... | @@ -19,7 +19,9 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location) { |
19 | 19 | } |
20 | 20 | //load json data |
21 | 21 | $scope.loadCurriculumBuiderData = function () { |
22 | - | |
22 | + if ($rootScope.refreshcheck == null) { | |
23 | + $location.path('/'); | |
24 | + } | |
23 | 25 | //get current path |
24 | 26 | var currentURL = $location.path(); |
25 | 27 | var selectedModuleName = ''; | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -376,7 +376,9 @@ 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 | + if ($rootScope.refreshcheck == null) { | |
380 | + $location.path('/'); | |
381 | + } | |
380 | 382 | //get current path |
381 | 383 | var currentURL = $location.path(); |
382 | 384 | var selectedModuleName = ''; | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -129,8 +129,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
129 | 129 | |
130 | 130 | function (result) { |
131 | 131 | if (result == 'true') { |
132 | + | |
132 | 133 | $rootScope.userModules = UserModules; |
133 | 134 | $rootScope.isVisibleLogin = false; |
135 | + $location.path('/'); | |
134 | 136 | } |
135 | 137 | else { |
136 | 138 | if (result == LoginConstants.USER_NOT_FOUND) { |
... | ... | @@ -165,6 +167,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
165 | 167 | $rootScope.haveRoleAdmin = false; |
166 | 168 | localStorage.setItem('loggedInUserDetails', JSON.stringify(result)); |
167 | 169 | $('#dvUserModulesInfo').modal('show'); |
170 | + $location.path('/'); | |
168 | 171 | } |
169 | 172 | //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) {} |
170 | 173 | |
... | ... | @@ -178,6 +181,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
178 | 181 | $rootScope.licenseeAccountNumber = result.License.AccountNumber; |
179 | 182 | localStorage.setItem('loggedInUserDetails', JSON.stringify(result)); |
180 | 183 | $('#dvUserModulesInfo').modal('show'); |
184 | + $location.path('/'); | |
181 | 185 | } |
182 | 186 | else { |
183 | 187 | if ($('#dvTerms').length > 0) { | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... | ... | @@ -13,6 +13,9 @@ 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 | + 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 | |
... | ... | @@ -88,6 +91,9 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location |
88 | 91 | |
89 | 92 | |
90 | 93 | $scope.GetQuizByTopic = function () { |
94 | + if ($rootScope.refreshcheck == null) { | |
95 | + $location.path('/'); | |
96 | + } | |
91 | 97 | var keywords = $location.search(); |
92 | 98 | $scope.LabExerciseName = keywords.labexercise; |
93 | 99 | $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", | |
4 | -function ($scope, $rootScope, log, pages, $routeParams) { | |
3 | +AIA.controller("LinkController", ["$scope", "$rootScope", "$log", "$location", "pages", "$routeParams", | |
4 | +function ($scope, $rootScope, log, $location, pages, $routeParams) { | |
5 | 5 | |
6 | 6 | //$rootScope.currentActiveModuleTitle = Modules[10].Name; |
7 | 7 | //$rootScope.currentActiveModuleTitle = $routeParams.modname; |
... | ... | @@ -17,6 +17,10 @@ function ($scope, $rootScope, log, pages, $routeParams) { |
17 | 17 | ]; |
18 | 18 | |
19 | 19 | $scope.$on('$viewContentLoaded', function (event) { |
20 | + | |
21 | + if ($rootScope.refreshcheck == null) { | |
22 | + $location.path('/'); | |
23 | + } | |
20 | 24 | // code that will be executed ... |
21 | 25 | // every time this view is loaded |
22 | 26 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... | ... | @@ -105,7 +105,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou |
105 | 105 | }; |
106 | 106 | |
107 | 107 | $scope.loadForModuleById = function (moduleId) { |
108 | - | |
108 | + if ($rootScope.refreshcheck == null) { | |
109 | + $location.path('/'); | |
110 | + } | |
109 | 111 | $scope.moduleId = moduleId; |
110 | 112 | $scope.activeTab = 1; |
111 | 113 | console.log('loadForModuleById is called') |
... | ... | @@ -205,6 +207,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou |
205 | 207 | |
206 | 208 | |
207 | 209 | $scope.openModuleItem = function () { |
210 | + if ($rootScope.refreshcheck == null) { | |
211 | + $location.path('/'); | |
212 | + } | |
208 | 213 | var jsContentURL; |
209 | 214 | var moduleItemViewDivId; |
210 | 215 | ... | ... |