diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index d4a9c53..09e8887 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -667,7 +667,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l }) // $rootScope.languageArray = []; $rootScope.loadSearchData = function () { - + var primaryLexiconIndex; var languageArray = []; $rootScope.vocabTermDataArray = []; var languageArray = $rootScope.lexiconLanguageArray; @@ -719,14 +719,13 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l if ($rootScope.vocabTermDataArray.length == $rootScope.lexiconLanguageArray.length) { $("#setting-spinner").css("display", "none"); - // $rootScope.isLoading = false; - // $("#spinner").css("visibility", "hidden"); - // // $("#spinner").css("display", "none"); - - //} else { - // $rootScope.isLoading = true; - // $("#spinner").css("visibility", "visible"); - // // $("#spinner").css("visibility", "block"); + + for (var i = 0; i <= $rootScope.vocabTermDataArray.length - 1; i++) { + if ($rootScope.vocabTermDataArray[i].language == $rootScope.lexiconLanguageArray[0].language) { + primaryLexiconIndex = i; + } + } + //alert(primaryLexiconIndex); if ($rootScope.isListManagerMenuSelected) { $scope.loadListManger(); } @@ -748,55 +747,16 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } } } - - - - - } + + //console.log("s" + $rootScope.vocabTermDataArray); //call watch on '$scope.VocabTermTxt and compile
  • and append to