Commit becb280667cd0919ff8ac95b91c263b56a8ec3bf

Authored by unknown
1 parent f818d328

DA > List Manager > List Manager appears blank when user refresh the DA page

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -3047,6 +3047,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3047,6 +3047,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3047 3047
3048 $rootScope.disableAnnotationtoolOnListManager = false; 3048 $rootScope.disableAnnotationtoolOnListManager = false;
3049 $rootScope.ShowListManager = function () { 3049 $rootScope.ShowListManager = function () {
  3050 +
3050 $rootScope.switchCanvas(); 3051 $rootScope.switchCanvas();
3051 $("#annotationpaintbrushsize").attr("href", "#"); 3052 $("#annotationpaintbrushsize").attr("href", "#");
3052 $("#annotationpainteraser").attr("href", "#"); 3053 $("#annotationpainteraser").attr("href", "#");
@@ -3065,9 +3066,6 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3065,9 +3066,6 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3065 $("#listManager").css("visibility", "visible"); 3066 $("#listManager").css("visibility", "visible");
3066 3067
3067 $('#listManager').draggable(); 3068 $('#listManager').draggable();
3068 -  
3069 -  
3070 -  
3071 $rootScope.islistManagerEventAlredayDispachted = true; 3069 $rootScope.islistManagerEventAlredayDispachted = true;
3072 3070
3073 $rootScope.$broadcast('listManagerEvent', true); 3071 $rootScope.$broadcast('listManagerEvent', true);
@@ -3095,10 +3093,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3095,10 +3093,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3095 // $('#termList option[value="' + $rootScope.SelectedTermList + '"]').prop("selected", true); 3093 // $('#termList option[value="' + $rootScope.SelectedTermList + '"]').prop("selected", true);
3096 //$("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" }); 3094 //$("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" });
3097 //$('#termList option[value="' + $rootScope.SelectedTermList + '"]').css({ "background-color": "#3399FF", "color": "#ffffff" }); 3095 //$('#termList option[value="' + $rootScope.SelectedTermList + '"]').css({ "background-color": "#3399FF", "color": "#ffffff" });
3098 -  
3099 -  
3100 } 3096 }
3101 $("#optionsListManagerTab").addClass("active"); 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 $rootScope.CloseListManager = function () { 3104 $rootScope.CloseListManager = function () {