diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 48cacba..ed1551c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -1,4 +1,5 @@ -'use strict'; + +'use strict'; AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "DA", "Modules", "$routeParams", "DataService", function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Modules, $routeParam, DataService) { @@ -717,10 +718,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.ColoredImageSRC = []; } - if ($scope.bodyRegionCoordinates != null || $scope.bodyRegionCoordinates != undefined) - { - angular.forEach($scope.bodyRegionCoordinates, function (value, key) - { + if ($scope.bodyRegionCoordinates != null || $scope.bodyRegionCoordinates != undefined) { + angular.forEach($scope.bodyRegionCoordinates, function (value, key) { if (value._HaveMirrorImage == 'Y') { @@ -733,7 +732,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo var src = $scope.GetImageSource(value._BodyRegionId); $scope.imageSource = src; - + //2.Draw mirror image $scope.DrawMirroredImage(Math.round(rectangle.scaledHeight), Math.round(rectangle.scaledWidth), Math.round(rectangle.scaledX), Math.round(rectangle.scaledY), src, value._BodyRegionId, 'N'); // debugger; @@ -756,7 +755,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //0. Scaling as per default zoom var rectangle = scaleRectangle(value._X, value._Y, value._Height, value._Width, 0); - + //1.Draw body region which have mirror image $scope.DrawImage(Math.round(rectangle.scaledHeight), Math.round(rectangle.scaledWidth), Math.round(rectangle.scaledX), Math.round(rectangle.scaledY), src, value._BodyRegionId, 'N'); $scope.BodyRegionCordinatesData.push( @@ -772,7 +771,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } else { - + //0.Scaling as per default zoom var rectangle = scaleRectangle(value._X, value._Y, value._Height, value._Width, value._MirrorValue); @@ -786,7 +785,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.imageSource = src; } - //2.Draw body region which don't have mirror image $scope.DrawImage(Math.round(rectangle.scaledHeight), Math.round(rectangle.scaledWidth), Math.round(rectangle.scaledX), Math.round(rectangle.scaledY), src, value._BodyRegionId, 'N'); @@ -812,6 +810,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo var gender; if (localStorage.getItem("genderId") == 'Female') { gender = 'F'; + } else { gender = 'M'; @@ -992,6 +991,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } + $scope.GetImageSource = function (bodyRegionId) { // debugger; var dataLength = $rootScope.BodyLayerData.Layers.DataLayer.length; @@ -1146,8 +1146,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo FlipedImgCanvas.addEventListener('click', function (evt) { //to get correct data on multihighlight highlight - if($scope.isLayerChange == true) - { + if ($scope.isLayerChange == true) { $scope.isLayerChange = false; } @@ -1428,7 +1427,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.DrawImage = function (h, w, x, y, src, bodyRegionId, isMaskImage) { var imgCanvas = document.createElement('canvas'); - + imgCanvas.height = h; imgCanvas.width = w; imgCanvas.setAttribute("data-IsMirrored", "N") @@ -1814,7 +1813,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo else if (($rootScope.viewOrientationId == '6') && ($scope.ColoredImageSRC.length == 1)) { loopLength = 1; } - + if (loopLength !== 0) { for (var x = 0; x < loopLength; x++) { if ($rootScope.MaskCanvasData[x] != null || $rootScope.MaskCanvasData[x] != undefined) { @@ -1918,7 +1917,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo grayCanvasContext.putImageData(imgData, 0, 0); } - + if ($rootScope.multiAnnotationIsON == true) { //debugger; if (canvasId.match('_MR')) @@ -1961,6 +1960,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.HighlightBodyByTermList = function (TermList) { + //if (($rootScope.updatedGrayMRDataList != null || $rootScope.updatedGrayMRDataList != undefined) && $rootScope.updatedGrayMRDataList.length > 0) { + // $rootScope.updatedGrayMRDataList = null; + // $rootScope.updatedGrayMRDataList = []; + //} + //if (($rootScope.updatedGrayDataList != null || $rootScope.updatedGrayDataList != undefined) && $rootScope.updatedGrayDataList.length > 0) { + // $rootScope.updatedGrayDataList = null; + // $rootScope.updatedGrayDataList = []; + //} console.log('HighlightBodyByTermList is called'); @@ -2051,7 +2058,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if ($scope.isLayerChange == true) { if ($rootScope.grayImageDataList[bodyRegionId - 1] != null || $rootScope.grayImageDataList[bodyRegionId - 1] != undefined) { grayImageDataVar = $rootScope.grayImageDataList[bodyRegionId - 1]; - + } } else { @@ -2135,11 +2142,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if (canvasId.match('_MR')) { $rootScope.updatedGrayMRDataList[bodyRegionId] = updatedData; + //alert('HighlightBodyByTermList, is mutiAnnotation on= ' + $rootScope.multiAnnotationIsON); + + //$rootScope.updatedWhiteImageMRDataList[bodyRegionId] = updatedData; } else $rootScope.updatedGrayDataList[bodyRegionId - 1] = updatedData; - + //$scope.highlightedBR.push({ 'bodyRegionId': bodyRegionId }); + console.log('$scope.highlightedBR.length= ' + $scope.highlightedBR.length) if ($scope.highlightedBR != null || $scope.highlightedBR != undefined) { @@ -2184,8 +2195,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo - - $scope.createTermListByPreviousTermsAndHighlight = function () { @@ -2209,14 +2218,13 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo console.log('createTermListByPreviousTermsAndHighlight is called'); - if ((multiTermList != undefined || multiTermList!=null) && multiTermList.length>0) { + if ((multiTermList != undefined || multiTermList != null) && multiTermList.length > 0) { $timeout(function () { $scope.HighlightBodyByTermList(multiTermList); }, 50); } } - $scope.GetRGBColor = function (maskCanvasContext, actulalX, actualY, x, y) { var pixelData = maskCanvasContext.getImageData(Math.round(actulalX - x), Math.round(actualY - y), 1, 1); @@ -2575,7 +2583,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo else { console.log('MultiLanguageAnnationArray.length is :' + $scope.MultiLanguageAnnationArray.length) } - + if($scope.longestAnnotation!=null || $scope.longestAnnotation!=undefined){ if ($scope.longestAnnotation.length <= 10) { @@ -2634,6 +2642,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } + + } var Globe = []; Globe.push({ currentX: x, currentY: y }); @@ -4542,54 +4552,30 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.flushCanvas = function () { - if ($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined) { - angular.forEach($scope.ColoredImageSRC, function (value, key) { - - var id; - var maskId; - if (value.haveMirror == 'true') { - id = 'imageCanvas' + value.bodyRegionId + '_MR'; - maskId = 'imageCanvas' + value.bodyRegionId + '_MR_mci' - } - else { - id = 'imageCanvas' + value.bodyRegionId; - maskId = 'imageCanvas' + value.bodyRegionId + '_mci'; - } - - var canvas = document.getElementById(id); - if (canvas != null || canvas != undefined) { - document.getElementById('canvasDiv').removeChild(canvas); - } - - var maskcanvas = document.getElementById(maskId); - if (maskcanvas != null || maskcanvas != undefined) { - document.getElementById('canvasDiv').removeChild(maskcanvas); - - } + //if ($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined) { + // angular.forEach($scope.ColoredImageSRC, function (value, key) { - var modestyCanvases = $("canvas[id*='imageCanvasmodestyImg']"); - for (var i = 0; i < modestyCanvases.length; i++) { - modestyCanvases[i].remove(); - } - }); - } - - //for (var i = 1; i < 7; i++) { - - // var id; - // var maskId; - - // id = 'imageCanvas' + i; - // maskId = 'imageCanvas' + i + '_mci'; + // var id; + // var maskId; + // if (value.haveMirror == 'true') { + // id = 'imageCanvas' + value.bodyRegionId + '_MR'; + // maskId = 'imageCanvas' + value.bodyRegionId + '_MR_mci' + // } + // else { + // id = 'imageCanvas' + value.bodyRegionId; + // maskId = 'imageCanvas' + value.bodyRegionId + '_mci'; + // } - // var canvas = document.getElementById(id); - // if (canvas != null || canvas != undefined) - // document.getElementById('canvasDiv').removeChild(canvas); + // var canvas = document.getElementById(id); + // if (canvas != null || canvas != undefined) { + // document.getElementById('canvasDiv').removeChild(canvas); + // } - // var maskcanvas = document.getElementById(maskId); - // if (maskcanvas != null || maskcanvas != undefined) - // document.getElementById('canvasDiv').removeChild(maskcanvas); + // var maskcanvas = document.getElementById(maskId); + // if (maskcanvas != null || maskcanvas != undefined) { + // document.getElementById('canvasDiv').removeChild(maskcanvas); + // } // if (i == 4 || i == 5 || i == 6) { // id = 'imageCanvas' + i + '_MR'; // maskId = 'imageCanvas' + i + '_MR_mci'; @@ -4603,6 +4589,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // document.getElementById('canvasDiv').removeChild(maskcanvas); // } + // var modestyCanvases = $("canvas[id*='imageCanvasmodestyImg']"); + // for (var i = 0; i < modestyCanvases.length; i++) { + // modestyCanvases[i].remove(); + // } + // }); // //remove modesty canavs // var modestyCanvases = $("canvas[id*='imageCanvasmodestyImg']"); // if (modestyCanvases != null || modestyCanvases != undefined && modestyCanvases.length > 0) { @@ -4611,6 +4602,44 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // } // } //} + + for (var i = 1; i < 7; i++) { + + var id; + var maskId; + + id = 'imageCanvas' + i; + maskId = 'imageCanvas' + i + '_mci'; + + var canvas = document.getElementById(id); + if (canvas != null || canvas != undefined) + document.getElementById('canvasDiv').removeChild(canvas); + + var maskcanvas = document.getElementById(maskId); + if (maskcanvas != null || maskcanvas != undefined) + document.getElementById('canvasDiv').removeChild(maskcanvas); + + if (i == 4 || i == 5 || i == 6) { + id = 'imageCanvas' + i + '_MR'; + maskId = 'imageCanvas' + i + '_MR_mci'; + + var canvas = document.getElementById(id); + if (canvas != null || canvas != undefined) + document.getElementById('canvasDiv').removeChild(canvas); + + var maskcanvas = document.getElementById(maskId); + if (maskcanvas != null || maskcanvas != undefined) + document.getElementById('canvasDiv').removeChild(maskcanvas); + } + + //remove modesty canavs + var modestyCanvases = $("canvas[id*='imageCanvasmodestyImg']"); + if (modestyCanvases != null || modestyCanvases != undefined && modestyCanvases.length > 0) { + for (var j = 0; j < modestyCanvases.length; j++) { + modestyCanvases[j].remove(); + } + } + } } $scope.terminateCurrentlyRunningWPs = function () { @@ -4750,7 +4779,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.highLightBody = function () { - // console.log('highLightBody is called and ColoredImageSRC length: ' + $scope.ColoredImageSRC.length + ' and $rootScope.viewOrientationId= ' + $rootScope.viewOrientationId); + console.log('highLightBody is called and ColoredImageSRC length: ' + $scope.ColoredImageSRC.length); $scope.terminateCurrentlyRunningWPs(); @@ -4773,13 +4802,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.doHighlightOrExtract = false; } - console.log('$scope.doHighlightOrExtract= ' + $scope.doHighlightOrExtract) + if ($scope.doHighlightOrExtract == true) { if ($rootScope.isHighLight == true) { $scope.grayedBR = []; angular.forEach($scope.ColoredImageSRC, function (value, key) { + console.log('$scope.ColoredImageSRC length before gray= ' + $scope.ColoredImageSRC.length) var id; if (value.haveMirror == 'true') { id = 'imageCanvas' + value.bodyRegionId + '_MR'; @@ -4819,7 +4849,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo img.src = dataURL; img.onload = function () { - + console.log('Before BitmapData call, width: ' + Math.max(img.width) + ', height: ' + Math.max(img.height) + ' value.bodyRegionId= ' + + value.bodyRegionId) var DAData = new BitmapData(Math.max(img.width), Math.max(img.height)); DAData.draw(img); @@ -4837,26 +4868,25 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo DAData.applyFilter(DAData, DAData.rect, zeroPoint, colorMode); - + context_gray.putImageData(DAData.data, 0, 0) - - // to resolve lateral arm black issue in highlight mode - if ($rootScope.viewOrientationId == 5 && (value.bodyRegionId == 6 ||value.bodyRegionId==4)) { - + //NIKI- to resolve lateral arm black issue in highlight mode + + if ($rootScope.viewOrientationId == 5 && (value.bodyRegionId == 6 || value.bodyRegionId == 4)) { + var imgData = context_gray.getImageData(0, 0, width, ht); var data = imgData.data; - var c=0; + var c = 0; for (var i = 0; i < data.length; i += 4) { if (data[i] == data[i + 1] && data[i + 1] == data[i + 2] && data[i + 2] === 0) { data[i + 3] = 0; } - + } context_gray.putImageData(imgData, 0, 0); } - - // + //push BRID into array $scope.grayedBR.push({ 'BRID': value.bodyRegionId }); @@ -4920,6 +4950,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } else if ($scope.isHighlightByListManager == true) { + // console.log('$scope.grayedBR.length is ' + $scope.grayedBR.length); $timeout(function () { $scope.HighlightBodyByTermList($scope.AllTerms) @@ -4929,7 +4960,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo else if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && $rootScope.previousHighlightList.length > 0) { $scope.createTermListByPreviousTermsAndHighlight(); } - } @@ -4942,12 +4972,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if ($rootScope.isExtract == true) { if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && $rootScope.previousHighlightList.length > 0) { - console.log('HighlightBodyOnExtract') + $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); } } //else { - // console.log('INSIDE ELSE. $scope.grayedBR.length= ' + $scope.grayedBR.length) // // this code is for the case where user first clcik on normal mode then extract then again highlight then we need to call highlight body in gray mode // //and then highlight the previously selected body regions at the time of normal mode. // if ($scope.grayedBR != null || $scope.grayedBR != undefined) { @@ -4966,14 +4995,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // } - // console.log('INSIDE ELSE $scope.isEligibleForHighlightBodyByTermList = ' + $scope.isEligibleForHighlightBodyByTermList) + // // //} }) - - //if ($scope.isEligibleForHighlightBodyByTermList == true) { - // console.log('CREATE multiTermList') + //if ($scope.isEligibleForHighlightBodyByTermList == true) { // if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && $rootScope.previousHighlightList.length > 0) { // var multiTermList = []; @@ -5016,6 +5043,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo var imageCanvas = document.getElementById(id); + //var coloredCanvasID = 'imageCanvas' + bodyRegionId; + //var coloredCanvas = document.getElementById(coloredCanvasID); var width = value.Width; var ht = value.Height; @@ -5491,38 +5520,42 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.skinTone = $rootScope.globalSetting.ethnicity; - var navdtlOrient = new jinqJs() - .from($scope.NavigatorData.Navigtor.ViewOrientation) - .where("_ViewOrientationId == " + $scope.voId) - .select(); - if (navdtlOrient != null || navdtlOrient != undefined) { + //if ($scope.NavigatorData != null || $scope.NavigatorData != undefined) { + var navdtlOrient = new jinqJs() + .from($scope.NavigatorData.Navigtor.ViewOrientation) + .where("_ViewOrientationId == " + $scope.voId) + .select(); + - var navOrientationdata = new jinqJs() - .from(navdtlOrient[0].ImageInfo) - .where("_Ethnicity == " + $scope.skinTone) - .select(); + if (navdtlOrient != null || navdtlOrient != undefined) { - if (navOrientationdata != null || navOrientationdata != undefined) { + var navOrientationdata = new jinqJs() + .from(navdtlOrient[0].ImageInfo) + .where("_Ethnicity == " + $scope.skinTone) + .select(); - $scope.navigatorImage = navOrientationdata; + if (navOrientationdata != null || navOrientationdata != undefined) { + $scope.navigatorImage = navOrientationdata; - var navImageModesty; - angular.forEach($scope.navigatorImage, function (value, key) { - if (value._HaveModesty === $rootScope.globalSetting.modesty) { - navImageModesty = value._ImageName; - } - }) - if (typeof (navImageModesty) === "undefined" || navImageModesty === null) { + var navImageModesty; - navImageModesty = $scope.navigatorImage[0]._ImageName; + angular.forEach($scope.navigatorImage, function (value, key) { + if (value._HaveModesty === $rootScope.globalSetting.modesty) { + navImageModesty = value._ImageName; + } + }) + if (typeof (navImageModesty) === "undefined" || navImageModesty === null) { - } + navImageModesty = $scope.navigatorImage[0]._ImageName; - $scope.navimgsrc = "~/../content/images/DA/ethnicity/body-views/" + $scope.voId + '/' + $scope.skinTone + '/navigator_images/' + navImageModesty; + } + + $scope.navimgsrc = "~/../content/images/DA/ethnicity/body-views/" + $scope.voId + '/' + $scope.skinTone + '/navigator_images/' + navImageModesty; + } } - } + } //Annotation tool event lsitener @@ -6131,7 +6164,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } - //-- TextArea functionality of Annotation toolbar + //-- TextArea functionality of Annotation toolbar $rootScope.fontSizes; $rootScope.fontWeight; @@ -6142,8 +6175,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $rootScope.textArea; $rootScope.fontFamily; $rootScope.saveText = function () { - - $rootScope.fontSizes = $("#text_area").css("font-size"); + + $rootScope.fontSizes = $("#text_area").css("font-size"); $rootScope.fontWeight = $("#text_area").css("font-weight"); $rootScope.fontStyle = $("#text_area").css("font-style"); $rootScope.textAlignmt = $("#text_area").css("text-align"); @@ -6157,7 +6190,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $('#canvas').drawText({ layer: true, draggable: true, - name:'TextArea_'+ $rootScope.resetText, + name: 'TextArea_' + $rootScope.resetText, groups: ['TextArea_' + $rootScope.resetText], dragGroups: ['TextArea_' + $rootScope.resetText], fillStyle: $rootScope.fontColor, @@ -6170,16 +6203,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo x: $scope.offsetX1, y: $scope.offsetY1, maxWidth: $scope.x - $scope.offsetX1, maxHeight: $scope.y - $scope.offsetY1, - + click: function (layer) { - - + + }, change: function (layer, props) { } - + }) // Draw rect as wide as the text .drawRect({ @@ -6200,19 +6233,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo click: function (layer) { $rootScope.shapeTypeText = "textAreaRect"; - + var layerNameSplit = layer.name; - + var splitedName = layerNameSplit.split("_"); - + var textValName = "TextArea_"; - + var concatinateResult = textValName.concat(splitedName[1]); - + $rootScope.canvasLayerNameCollection = []; $rootScope.canvasLayerNameCollection.push({ textareaRectangle: layer.name, textareaString: concatinateResult }); - - + + $('#canvas').setLayer(layer.name, { handle: { @@ -6227,7 +6260,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo }, mouseout: function (layer) { - + $rootScope.canvasLayerNameCollection = []; $('#canvas').setLayer(layer.name, { handle: { @@ -6243,7 +6276,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo }, mouseover: function (layer) { - + $('#canvas').setLayer(layer.name, { handle: { type: 'rectangle', @@ -6258,16 +6291,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } }); $("#text_area").val(''); - - $("#text_area").css({" font-family":"'Verdana, sans-serif'","font-size":"14px","font-weight":"normal","font-style":"normal","color":"#000","text-align":"left","text-decoration":"none"}); - + + $("#text_area").css({ " font-family": "'Verdana, sans-serif'", "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" }); + } function OnPaintCanvasMouseMove(event) { - + } $rootScope.FreeStylePaint = function (e) { @@ -6641,7 +6674,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if (($scope.isHighlightBodysystem == true) && ($scope.systemMatchedTermList != null || $scope.systemMatchedTermList != undefined)) { $timeout(function () { $scope.HighlightBodyByTermList(systemMatchedTermList) }, 100); - } + } } @@ -6753,6 +6786,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo }) + $scope.VocabTermTxt = new jinqJs() .from(vocabTermTxt) .distinct('_TermText', '_ActualTermNumber') @@ -6776,7 +6810,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } // }) - + //.error(function (data, status, headers, config) { // console.log(data); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index b4d0bc6..2457726 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -75,7 +75,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", if (alreadyOpenThisView != null) { for (var i = 0; i < $rootScope.openViews.length; i++) { k++; - if ($rootScope.openViews[i].body - views == title) { + if ($rootScope.openViews[i].body-views == title) { $rootScope.openViews.splice((k - 1), 1); $rootScope.openViews.push(