Note : Some languages require special system fonts to display correctly
diff --git a/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs b/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs index 4ff8923..7128c81 100644 --- a/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs +++ b/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs @@ -67,6 +67,7 @@ namespace AIAHTML5.API.Models foreach (DataRow drModule in dt.Rows) { userModuleHash = new Hashtable(); + userModuleHash.Add(AIAConstants.KEY_ID, drModule["Id"]); userModuleHash.Add(AIAConstants.KEY_NAME, drModule["Name"]); userModuleHash.Add(AIAConstants.KEY_SLUG, drModule["Slug"]); arrUserModules.Add(userModuleHash); @@ -207,6 +208,7 @@ namespace AIAHTML5.API.Models foreach (DataRow dr in dt.Rows) { modulesHash = new Hashtable(); + modulesHash.Add(AIAConstants.KEY_ID, dr["Id"]); modulesHash.Add(AIAConstants.KEY_NAME, dr["Title"]); modulesHash.Add(AIAConstants.KEY_SLUG, dr["Slug"]); userModulelist.Add(modulesHash); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 53f69c9..d4a9c53 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -6730,9 +6730,15 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l // $rootScope.isListManagerSelected = false; $rootScope.CloseListManager(); - $rootScope.isHighlightBodyByBodySystem = false; - if ($rootScope.isHighLight == true) { + if ($rootScope.isHighlightBodyByBodySystem) { + $rootScope.isHighlightBodyByBodySystem = false; + //to make the system highlight if the body systme highlighted than Normal and again highlight + $scope.isbodySystemHighlight = true; + } + // $rootScope.isHighlightBodyByBodySystem = false; + + if ($rootScope.isHighLight == true) { } else { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 1d39758..a831488 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -272,23 +272,39 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic function ShowAssignedModulesPopup(userModules) { var allModules = Modules; - var elemId = 0; - for (var module = 0; module <= allModules.length; module++) { - elemId = module + 1; // Id starts from 1 - $('#moduleDiv' + elemId).hide(); + var arrPendingModules = []; + if ($('#dvPendingModules').length > 0) { + $('#dvPending').hide(); } + for (var module = 1; module <= allModules.length; module++) { + $('#moduleDiv' + module).hide(); + } + if (('#moduleDiv1017').length > 0) { + $('#moduleDiv1017').hide(); + } + for (var count = 0; count < userModules.length; count++) { for (var module = 0; module < allModules.length; module++) { - if (userModules[count].name.trim() == allModules[module].Name.trim()) { - elemId = count + 1; // Id starts from 1 - $('#moduleDiv' + elemId).show(); + if (userModules[count].id == allModules[module].Id) { + $('#moduleDiv' + userModules[count].id).show(); break; } + + if (userModules[count].id == 7) + arrPendingModules.push(userModules[count].id); + if (userModules[count].id == 8) + arrPendingModules.push(userModules[count].id); + if (userModules[count].id == 10) + arrPendingModules.push(userModules[count].id); } } if (userModules.length > 0) { $('#dvUserModulesInfo').modal('show'); } + + if (arrPendingModules.length > 0) { + $('#dvPendingModules').show(); + } } $rootScope.UpdateLicenseTermStatus = function () { $('#dvTermCondition').fadeOut(); @@ -354,7 +370,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic if (userInfo.LoginId != undefined || userInfo.LoginId != "" || userInfo.LoginId != null) { - if (userInfo.UserType == UserTypeConstants.SUPER_ADMIN && result.IsActive) { //(!result.IsSubscriptionExpired) && + if (userInfo.UserType == UserTypeConstants.SUPER_ADMIN && userInfo.IsActive) { //(!result.IsSubscriptionExpired) && $rootScope.userData = userInfo; @@ -3808,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)"); } @@ -4236,6 +4255,17 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic }; $rootScope.ShowPrintPreviewWindow = function (event) { // Print Preview + if ($location.url() == "/module-item-view") { + if ($("#hidePinBtn").hasClass("btn-primary")) { + $rootScope.isHidePinBtnActiveInPrintPreview = true; + } + if ($("#selectedPin").hasClass("btn-primary")) { + $rootScope.isShowSelectedPinActiveInPrintPrevMode = true; + } + if ($("#allPinBtn").hasClass("btn-primary")) { + $rootScope.isShowAllPinBtnActiveInPrintPreviewMode = true; + } + } $(".tools").css("z-index", "1029"); $rootScope.CloseListManager(); $rootScope.CloseAnnotationTool(); @@ -4273,6 +4303,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $("#printcontainer").css('width', $(window).outerWidth()); $("#printcontainer").css('height', $(window).outerHeight()); } + if ($location.url() == "/module-item-view") { + $("#aaDetailViewCanvas").css("display", "none"); + } }, 520); } else { @@ -4287,6 +4320,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $("#printcontainer").css('width', $(window).outerWidth()); $("#printcontainer").css('height', $(window).outerHeight()); } + if ($location.url() == "/module-item-view") { + $("#aaDetailViewCanvas").css("display", "none"); + } }, 320); } @@ -4300,6 +4336,13 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic } } }); + + if ($location.url() == "/module-item-view") { + $timeout(function () { + $rootScope.hidePins(); + }, 100); + } + }; function OpenJSPanel() { @@ -4436,6 +4479,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $("#annotationToolBarOptions").removeClass("disableMenuoption"); $("#optionsListManagerTab").removeClass("disableMenuoption"); $('#fileMenuAnchor').parent().removeClass('disableFileMenu'); + $("#aaDetailViewCanvas").css("display", "block"); if ($('#jsPanel-1').length > 0) $('#jsPanel-1').remove(); console.log('close'); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index d174efb..2f533c3 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("
Note : Some languages require special system fonts to display correctly