Commit 3d8d7054868d742d7aa37bef38d676b08e7d0745

Authored by Amrita Vishnoi
2 parents 9ed1a0c0 c9c94e8a

Merge branch 'DisablePendingModules' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -3824,11 +3824,14 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3824 3824 }, 1000);
3825 3825 }
3826 3826 $("#optionsListManagerTab").addClass("active");
3827   - var viewNameAftrSplit = $("#viewName").val().split(" ");
3828   - if (viewNameAftrSplit[0] == "null") {
3829   - document.location.href = "/";
  3827 + var viewNameAftrSplit;
  3828 + if ($("#viewName").val() !== null) {
  3829 + viewNameAftrSplit = $("#viewName").val().split(" ");
  3830 +
  3831 + if (viewNameAftrSplit[0] == "null") {
  3832 + document.location.href = "/";
  3833 + }
3830 3834 }
3831   -
3832 3835 if ($location.url() == "/module-item-view") {
3833 3836 $("#termList").attr("onclick", "if (typeof(this.selectedIndex) != 'undefined') onSearchItemSelection(this.options[this.selectedIndex].id)");
3834 3837 }
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... ... @@ -143,7 +143,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
143 143  
144 144  
145 145 $scope.openListViewModuleItem = function (event) {
146   -
147 146 $("#demoView").remove();
148 147 var moduleItemDataToBeSavedID = event.currentTarget.id;
149 148 $("#list-view table tbody tr").removeClass("active");
... ... @@ -153,7 +152,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
153 152 var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text().trim();
154 153 $rootScope.OpenedTileData = ModuleService.GetOpenedTileData(moduleItemDataToBeSaved, $scope.moduleLandingData);
155 154 $rootScope.OpenItemImagePath = "../../../content/images/aa/images/" + $rootScope.OpenedTileData[3];
156   - $rootScope.listArray = [];
  155 + //$rootScope.listArray = [];
157 156 $rootScope.listArray.push({ "imageName": $rootScope.OpenItemImagePath, "text": moduleItemDataToBeSaved });
158 157 $("#viewList").append("<div class='col-xs-12 text-center' style='padding-top:15px;padding-bottom:15px;' id='demoView'><div class='col-xs-12' style='padding:15px;background-color:#fff;'><div class='col-xs-2' style='border:1px solid #000;padding:5px;color:#000;font-size:12px;'><div class='thumbnail' style='margin-bottom:10px;'><img style='width:auto;height:95px!important;' src=" + $rootScope.OpenItemImagePath + "></div><div class='col-xs-12' id='demoText' style='padding:0;'>" + moduleItemDataToBeSaved + "</div></div></div><a style='position:absolute;right:30px;bottom:34px;' onclick='openCurrentView(event)' href='javascript:void(0)' class='pull-right btn btn-primary'>Open</a></div>");
159 158 }
... ... @@ -1245,7 +1244,11 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1245 1244 $scope.$on('listManagerEvent', function (event, data) {
1246 1245  
1247 1246 $("#viewName").empty();
1248   - $("#viewName").append("<option>" + $rootScope.listArray[0].text + "</option>");
  1247 +
  1248 + var currentView = $rootScope.getLocalStorageValue("currentViewTitle");
  1249 + var viewNmeHtml = '<option>' + currentView + '</option>'
  1250 + $('#viewName').append(viewNmeHtml);
  1251 + //$("#viewName").append("<option>" + $rootScope.listArray[0].text + "</option>");
1249 1252 $rootScope.isLoading = false;
1250 1253 $('#spinner').css('visibility', 'hidden');
1251 1254  
... ... @@ -1802,7 +1805,6 @@ function openListViewModuleItem(event) {
1802 1805 }
1803 1806  
1804 1807 function openCurrentView(event) {
1805   -
1806 1808 var scope = angular.element(document.getElementById("list-view")).scope();
1807 1809 scope.isListViewButtonClicked = true;
1808 1810 scope.isOpenBtnClicked = true;
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html
1   -<div class="bodyWrap row ">
  1 +<div class="bodyWrap row ">
2 2 <div ng-include="'app/widget/MainMenu.html'" />
3 3 <div class="main" ng-init="loadForModuleById(1)">
4 4 <!--<div class="main">-->
... ... @@ -86,7 +86,7 @@
86 86 <!--<div role="tabpanel" class="tab-pane active" id="grid-view">-->
87 87 <div role="tabpanel" class="tab-pane active" id="grid-view">
88 88 <div ng-repeat="(key,val) in moduleLandingData.data.root.Item | orderBy:'_Title' ">
89   - <div id="{{val._Id}}" class="col-sm-3 col-lg-2" title="{{val._Title}}" data-ng-click="openModuleItemView($event)">
  89 + <div id="{{val._Id}}" class="col-sm-3 col-lg-2" title="{{val._Title}}" ng-click="openModuleItemView($event)">
90 90 <div class="thumbnail">
91 91 <a href="#">
92 92 <img class="tinyImg" id="{{val._Title}}" ng-src="../content/images/aa/thumbnails/{{val._TileImageName}}" data-ng-click="openModuleItemView($event)" alt="" title="">
... ...
400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
... ... @@ -26,7 +26,7 @@
26 26 <div class="sidebar pull-left mCustomScrollbar _mCS_1 mCS-autoHide ">
27 27 <!--{{name}}-->
28 28 <ul class="nav nav-sidebar" ng-init="hideScrollbar()">
29   - <li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible();getModuleScrollPosition()" data-ng-bind="module.name" ng-class="HightLightModuleSelection('{{module.slug}}')"><!--{{module.name}}--></a></li>
  29 + <li ng-repeat="module in userModules" ng-disabled="module.id==7|| module.id==8 || module.id==10"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible();getModuleScrollPosition()" data-ng-bind="module.name" ng-class="HightLightModuleSelection('{{module.slug}}')" ng-disabled="module.id==7|| module.id==8 || module.id==10"><!--{{module.name}}--></a></li>
30 30 </ul>
31 31 </div>
32 32  
... ...
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css
... ... @@ -1093,4 +1093,11 @@ color:#ffffff !important;
1093 1093  
1094 1094 width : 400px !important;
1095 1095  
1096   - }
1097 1096 \ No newline at end of file
  1097 + }
  1098 +
  1099 +li[disabled], a[disabled] {
  1100 + pointer-events: none;
  1101 +}
  1102 +a[disabled] {
  1103 + color: #aaa !important;
  1104 +}
1098 1105 \ No newline at end of file
... ...