From 4de654045893c042a02c1026c8f57b9d8632667e Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 15 Mar 2017 16:37:43 +0530 Subject: [PATCH] changed boolean variable location. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index f1bfc30..6ba42eb 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -8432,18 +8432,21 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $rootScope.ModifiedsearchListArray = []; // added the timeout to delay the compile of ul li $scope.IsSearchVisible = true; - + var isValueMatchedWithTerm = false; for (var i = 0; i <= $rootScope.searchListArray.length - 1; i++) { var searchFieldVal = $("#typedTermName").val(); if (searchFieldVal.length > 0) { - var isValueMatchedWithTerm = true; + for (var j = 0; j <= searchFieldVal.length - 1; j++) { if (searchFieldVal[j].toUpperCase() != $rootScope.searchListArray[i].name[j].toUpperCase()) { isValueMatchedWithTerm = false; break; } + else { + isValueMatchedWithTerm = true + } } if (isValueMatchedWithTerm == true) { $rootScope.ModifiedsearchListArray.push({ "name": $rootScope.searchListArray[i].name, "id": $rootScope.searchListArray[i].id}); -- libgit2 0.21.4