diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 9b4835b..a82c89d 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -3824,11 +3824,14 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic }, 1000); } $("#optionsListManagerTab").addClass("active"); - var viewNameAftrSplit = $("#viewName").val().split(" "); - if (viewNameAftrSplit[0] == "null") { - document.location.href = "/"; + var viewNameAftrSplit; + if ($("#viewName").val() !== null) { + viewNameAftrSplit = $("#viewName").val().split(" "); + + if (viewNameAftrSplit[0] == "null") { + document.location.href = "/"; + } } - if ($location.url() == "/module-item-view") { $("#termList").attr("onclick", "if (typeof(this.selectedIndex) != 'undefined') onSearchItemSelection(this.options[this.selectedIndex].id)"); } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index d174efb..fe915d4 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -143,7 +143,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.openListViewModuleItem = function (event) { - $("#demoView").remove(); var moduleItemDataToBeSavedID = event.currentTarget.id; $("#list-view table tbody tr").removeClass("active"); @@ -153,7 +152,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text().trim(); $rootScope.OpenedTileData = ModuleService.GetOpenedTileData(moduleItemDataToBeSaved, $scope.moduleLandingData); $rootScope.OpenItemImagePath = "../../../content/images/aa/images/" + $rootScope.OpenedTileData[3]; - $rootScope.listArray = []; + //$rootScope.listArray = []; $rootScope.listArray.push({ "imageName": $rootScope.OpenItemImagePath, "text": moduleItemDataToBeSaved }); $("#viewList").append("
" + moduleItemDataToBeSaved + "
Open
"); } @@ -1245,7 +1244,11 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.$on('listManagerEvent', function (event, data) { $("#viewName").empty(); - $("#viewName").append(""); + + var currentView = $rootScope.getLocalStorageValue("currentViewTitle"); + var viewNmeHtml = '' + $('#viewName').append(viewNmeHtml); + //$("#viewName").append(""); $rootScope.isLoading = false; $('#spinner').css('visibility', 'hidden'); @@ -1802,7 +1805,6 @@ function openListViewModuleItem(event) { } function openCurrentView(event) { - var scope = angular.element(document.getElementById("list-view")).scope(); scope.isListViewButtonClicked = true; scope.isOpenBtnClicked = true; diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html index 6b8159c..3999df1 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html @@ -1,4 +1,4 @@ -
+
@@ -86,7 +86,7 @@
-
+
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html index 0251686..69c183b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html @@ -26,7 +26,7 @@ diff --git a/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css b/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css index 34a1702..5d2248b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css +++ b/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css @@ -1093,4 +1093,11 @@ color:#ffffff !important; width : 400px !important; - } \ No newline at end of file + } + +li[disabled], a[disabled] { + pointer-events: none; +} +a[disabled] { + color: #aaa !important; +} \ No newline at end of file