Commit becb280667cd0919ff8ac95b91c263b56a8ec3bf
1 parent
f818d328
DA > List Manager > List Manager appears blank when user refresh the DA page
Showing
1 changed file
with
5 additions
and
5 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -3047,6 +3047,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
3047 | 3047 | |
3048 | 3048 | $rootScope.disableAnnotationtoolOnListManager = false; |
3049 | 3049 | $rootScope.ShowListManager = function () { |
3050 | + | |
3050 | 3051 | $rootScope.switchCanvas(); |
3051 | 3052 | $("#annotationpaintbrushsize").attr("href", "#"); |
3052 | 3053 | $("#annotationpainteraser").attr("href", "#"); |
... | ... | @@ -3065,9 +3066,6 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
3065 | 3066 | $("#listManager").css("visibility", "visible"); |
3066 | 3067 | |
3067 | 3068 | $('#listManager').draggable(); |
3068 | - | |
3069 | - | |
3070 | - | |
3071 | 3069 | $rootScope.islistManagerEventAlredayDispachted = true; |
3072 | 3070 | |
3073 | 3071 | $rootScope.$broadcast('listManagerEvent', true); |
... | ... | @@ -3095,10 +3093,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
3095 | 3093 | // $('#termList option[value="' + $rootScope.SelectedTermList + '"]').prop("selected", true); |
3096 | 3094 | //$("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" }); |
3097 | 3095 | //$('#termList option[value="' + $rootScope.SelectedTermList + '"]').css({ "background-color": "#3399FF", "color": "#ffffff" }); |
3098 | - | |
3099 | - | |
3100 | 3096 | } |
3101 | 3097 | $("#optionsListManagerTab").addClass("active"); |
3098 | + var viewNameAftrSplit = $("#viewName").val().split(" "); | |
3099 | + if (viewNameAftrSplit[0] == "null") { | |
3100 | + document.location.href = "/"; | |
3101 | + } | |
3102 | 3102 | } |
3103 | 3103 | |
3104 | 3104 | $rootScope.CloseListManager = function () { | ... | ... |