Commit 4f70542740c4bd6fb0fd3668c3231bb5c1bf1381

Authored by Nikita Kulshreshtha
1 parent 15261bfe

now terms are appeared which starts with the leters written in input box

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
1 1 
2 2 'use strict';
3 3  
4   -AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "DA", "Modules", "$routeParams", "DataService", "TermService", "AIAConstants","startsWithLetter",
5   - function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Modules, $routeParam, DataService, TermService, AIAConstants, startsWithLetter) {
  4 +AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$http", "$log", "$location", "$timeout", "DA", "Modules", "$routeParams", "DataService", "TermService", "AIAConstants",
  5 + function ($scope, $rootScope, $compile, $filter, $http, $log, $location, $timeout, DA, Modules, $routeParam, DataService, TermService, AIAConstants) {
6 6  
7 7  
8 8 $scope.genderId = "";
... ... @@ -11,8 +11,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
11 11 $scope.imagePath = "";
12 12 $rootScope.BodyRegionData;
13 13 $rootScope.BodyRegionCordinatesData;
14   - $rootScope.isTransparencyActiva
15   - ted = false;
  14 + $rootScope.isTransparencyActivated = false;
16 15 $scope.isTransparencyBtnClicked = false;
17 16 $rootScope.BodyLayerData;
18 17 $rootScope.VocabTermData;
... ... @@ -9826,6 +9825,19 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
9826 9825 }, 100);
9827 9826 };
9828 9827  
  9828 + //$scope.startsWithLetter = function (letter) {
  9829 + // return function (items, letter) {
  9830 + // var filtered = [];
  9831 + // var letterMatch = new RegExp(letter, 'i');
  9832 + // for (var i = 0; i < items.length; i++) {
  9833 + // var item = items[i];
  9834 + // if (letterMatch.test(item.name.substring(0, 1))) {
  9835 + // filtered.push(item);
  9836 + // }
  9837 + // }
  9838 + // return filtered;
  9839 + // };
  9840 + //}
9829 9841 $scope.ApplySearch = function () {
9830 9842 $rootScope.isLoading = false;
9831 9843 $('#spinner').css('visibility', 'hidden');
... ...