Commit 4de654045893c042a02c1026c8f57b9d8632667e

Authored by Nikita Kulshreshtha
1 parent 6e570b23

changed boolean variable location.

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -8432,18 +8432,21 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
8432 8432 $rootScope.ModifiedsearchListArray = [];
8433 8433 // added the timeout to delay the compile of ul li
8434 8434 $scope.IsSearchVisible = true;
8435   -
  8435 + var isValueMatchedWithTerm = false;
8436 8436 for (var i = 0; i <= $rootScope.searchListArray.length - 1; i++)
8437 8437 {
8438 8438 var searchFieldVal = $("#typedTermName").val();
8439 8439 if (searchFieldVal.length > 0) {
8440   - var isValueMatchedWithTerm = true;
  8440 +
8441 8441 for (var j = 0; j <= searchFieldVal.length - 1; j++) {
8442 8442  
8443 8443 if (searchFieldVal[j].toUpperCase() != $rootScope.searchListArray[i].name[j].toUpperCase()) {
8444 8444 isValueMatchedWithTerm = false;
8445 8445 break;
8446 8446 }
  8447 + else {
  8448 + isValueMatchedWithTerm = true
  8449 + }
8447 8450 }
8448 8451 if (isValueMatchedWithTerm == true) {
8449 8452 $rootScope.ModifiedsearchListArray.push({ "name": $rootScope.searchListArray[i].name, "id": $rootScope.searchListArray[i].id});
... ...