Commit 5003a9440a80aff096c415a5e9f9fa66a2962603
1 parent
68ae50e8
Commit Changes
Showing
3 changed files
with
17 additions
and
12 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -595,6 +595,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -595,6 +595,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
595 | 595 | ||
596 | angular.element(document).ready(function (e) { | 596 | angular.element(document).ready(function (e) { |
597 | $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { | 597 | $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { |
598 | + $rootScope.selectedBodySystemName = 'All'; | ||
599 | + $rootScope.selectedBodySystemId = 0; | ||
598 | $rootScope.searchSelectedText = ''; | 600 | $rootScope.searchSelectedText = ''; |
599 | }); | 601 | }); |
600 | $("#layerChangeSlider").slider({ | 602 | $("#layerChangeSlider").slider({ |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -3148,7 +3148,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -3148,7 +3148,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
3148 | 3148 | ||
3149 | $rootScope.disableAnnotationtoolOnListManager = false; | 3149 | $rootScope.disableAnnotationtoolOnListManager = false; |
3150 | $rootScope.ShowListManager = function () { | 3150 | $rootScope.ShowListManager = function () { |
3151 | - | 3151 | + |
3152 | $rootScope.switchCanvas(); | 3152 | $rootScope.switchCanvas(); |
3153 | $("#annotationpaintbrushsize").attr("href", "#"); | 3153 | $("#annotationpaintbrushsize").attr("href", "#"); |
3154 | $("#annotationpainteraser").attr("href", "#"); | 3154 | $("#annotationpainteraser").attr("href", "#"); |
@@ -3168,9 +3168,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -3168,9 +3168,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
3168 | 3168 | ||
3169 | $('#listManager').draggable(); | 3169 | $('#listManager').draggable(); |
3170 | $rootScope.islistManagerEventAlredayDispachted = true; | 3170 | $rootScope.islistManagerEventAlredayDispachted = true; |
3171 | - | 3171 | + |
3172 | $rootScope.$broadcast('listManagerEvent', true); | 3172 | $rootScope.$broadcast('listManagerEvent', true); |
3173 | - | 3173 | + |
3174 | if ($rootScope.selectedBodySystemName == undefined && $rootScope.slectedActualTermNumber == undefined) { | 3174 | if ($rootScope.selectedBodySystemName == undefined && $rootScope.slectedActualTermNumber == undefined) { |
3175 | if ($location.path() == "/module-item-view") { | 3175 | if ($location.path() == "/module-item-view") { |
3176 | $timeout(function () { | 3176 | $timeout(function () { |
@@ -3192,11 +3192,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -3192,11 +3192,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
3192 | if ($rootScope.selectedBodySystemId == undefined) { | 3192 | if ($rootScope.selectedBodySystemId == undefined) { |
3193 | $rootScope.selectedBodySystemId = 0; | 3193 | $rootScope.selectedBodySystemId = 0; |
3194 | if ($location.path() == "/module-item-view") { | 3194 | if ($location.path() == "/module-item-view") { |
3195 | - $scope.refreshTermListOnAASystemSelection($rootScope.selectedBodySystemId); | 3195 | + $rootScope.refreshTermListOnAASystemSelection($rootScope.selectedBodySystemId); |
3196 | } | 3196 | } |
3197 | else { | 3197 | else { |
3198 | if ($location.path() == "/module-item-view") { | 3198 | if ($location.path() == "/module-item-view") { |
3199 | - $scope.refreshTermListOnAASystemSelection($rootScope.selectedBodySystemId); | 3199 | + $rootScope.refreshTermListOnAASystemSelection($rootScope.selectedBodySystemId); |
3200 | } | 3200 | } |
3201 | else { | 3201 | else { |
3202 | $rootScope.refreshTermListOnSystemSelection($rootScope.selectedBodySystemId); | 3202 | $rootScope.refreshTermListOnSystemSelection($rootScope.selectedBodySystemId); |
@@ -3206,13 +3206,14 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -3206,13 +3206,14 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
3206 | } | 3206 | } |
3207 | else { | 3207 | else { |
3208 | if ($location.path() == "/module-item-view") { | 3208 | if ($location.path() == "/module-item-view") { |
3209 | - $scope.refreshTermListOnAASystemSelection($rootScope.selectedBodySystemId); | 3209 | + $rootScope.refreshTermListOnAASystemSelection($rootScope.selectedBodySystemId); |
3210 | } | 3210 | } |
3211 | else { | 3211 | else { |
3212 | $rootScope.refreshTermListOnSystemSelection($rootScope.selectedBodySystemId); | 3212 | $rootScope.refreshTermListOnSystemSelection($rootScope.selectedBodySystemId); |
3213 | } | 3213 | } |
3214 | 3214 | ||
3215 | } | 3215 | } |
3216 | + | ||
3216 | $timeout(function () { | 3217 | $timeout(function () { |
3217 | $('#bodySystems option[selected="selected"]').prop("selected", false); | 3218 | $('#bodySystems option[selected="selected"]').prop("selected", false); |
3218 | $('#bodySystems option[value="' + $rootScope.selectedBodySystemName + '"]').prop("selected", true); | 3219 | $('#bodySystems option[value="' + $rootScope.selectedBodySystemName + '"]').prop("selected", true); |
@@ -3228,7 +3229,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -3228,7 +3229,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
3228 | } | 3229 | } |
3229 | 3230 | ||
3230 | $rootScope.CloseListManager = function () { | 3231 | $rootScope.CloseListManager = function () { |
3231 | - | 3232 | + |
3232 | $("#btnTranparency").removeAttr('disabled', 'disabled'); | 3233 | $("#btnTranparency").removeAttr('disabled', 'disabled'); |
3233 | $("#optionsListManagerTab").removeClass("active"); | 3234 | $("#optionsListManagerTab").removeClass("active"); |
3234 | console.log('close'); | 3235 | console.log('close'); |
@@ -3246,6 +3247,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -3246,6 +3247,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
3246 | $rootScope.switchCanvasToPaintCanvas(); | 3247 | $rootScope.switchCanvasToPaintCanvas(); |
3247 | } | 3248 | } |
3248 | } | 3249 | } |
3250 | + if ($location.path() == "/module-item-view") { | ||
3251 | + $rootScope.selectedBodySystemName = $("#AABodySystems").val(); | ||
3252 | + $rootScope.selectedBodySystemId = $('#AABodySystems option[value="' + $rootScope.selectedBodySystemName + '"]').attr("id"); | ||
3253 | + } | ||
3249 | $('#listManager').css('display', 'none'); | 3254 | $('#listManager').css('display', 'none'); |
3250 | $("#listManager").css("visibility", "hidden"); | 3255 | $("#listManager").css("visibility", "hidden"); |
3251 | 3256 |
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -317,12 +317,10 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | @@ -317,12 +317,10 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | ||
317 | $(document).on("click", "#ImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { | 317 | $(document).on("click", "#ImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { |
318 | $scope.setActiveTab(parseInt(localStorage.getItem("activeTab"))); | 318 | $scope.setActiveTab(parseInt(localStorage.getItem("activeTab"))); |
319 | $(".tools").css("z-index", "15000"); | 319 | $(".tools").css("z-index", "15000"); |
320 | + $rootScope.selectedBodySystemName = 'All'; | ||
321 | + $rootScope.selectedBodySystemId = 0; | ||
320 | $rootScope.searchSelectedText = ''; | 322 | $rootScope.searchSelectedText = ''; |
321 | - //if (localStorage.getItem("activeTab") != null) { | ||
322 | - | ||
323 | - // $rootScope.isListViewRowClicked = true; | ||
324 | - | ||
325 | - //} | 323 | + |
326 | }); | 324 | }); |
327 | }) | 325 | }) |
328 | 326 |