From 1c749689b13f274a0e91cc4fa08948ddebcb82c2 Mon Sep 17 00:00:00 2001 From: Rishav Date: Mon, 17 Apr 2017 14:45:29 +0530 Subject: [PATCH] search issue solved --- app/views/fbo-Clients/fboClient.controller.js | 74 ++++++++++++------------- app/views/fbo-Clients/fboClients.html | 9 +-- app/views/flightDept/flightDept.html | 8 +-- app/views/flightDept/flightDeptController.js | 79 ++++++++++++++------------- 4 files changed, 86 insertions(+), 84 deletions(-) diff --git a/app/views/fbo-Clients/fboClient.controller.js b/app/views/fbo-Clients/fboClient.controller.js index f08eec1..f60fe20 100644 --- a/app/views/fbo-Clients/fboClient.controller.js +++ b/app/views/fbo-Clients/fboClient.controller.js @@ -19,45 +19,45 @@ }) } - $scope.searchData = function(){ - var userType = $('#tabClient > li.active > a').attr('id'); - searchClient($scope.searchQuery, userType); - } + // $scope.searchData = function(){ + // var userType = $('#tabClient > li.active > a').attr('id'); + // searchClient($scope.searchQuery, userType); + // } - function searchClient(searchData, userType){ - console.log(userType) - if(searchData == null || searchData == undefined || searchData == "" && userType == 'fbo'){ - getAllFbo(); - }else if(searchData == null || searchData == undefined || searchData == "" && userType == 'flightDetp'){ - $scope.fboDept(); - }else{ - var data = { - "query" : searchData, - "userType" : userType - } - FBOClient.getSearchClient(data).then(function(result) { - for(var i=0; i -->
- + + - +
@@ -51,7 +52,7 @@
- + @@ -68,7 +69,7 @@
{{client.user.firstName}} {{client.user.lastName}}
- + diff --git a/app/views/flightDept/flightDept.html b/app/views/flightDept/flightDept.html index 5049f5e..ac723e3 100644 --- a/app/views/flightDept/flightDept.html +++ b/app/views/flightDept/flightDept.html @@ -34,9 +34,9 @@

-->
- + - +
@@ -51,7 +51,7 @@
{{dept.user.companyName}} {{dept.user.firstName}} {{dept.user.lastName}}
- + @@ -68,7 +68,7 @@
{{client.user.firstName}} {{client.user.lastName}}
- + diff --git a/app/views/flightDept/flightDeptController.js b/app/views/flightDept/flightDeptController.js index 6f50f10..d6eb0b6 100644 --- a/app/views/flightDept/flightDeptController.js +++ b/app/views/flightDept/flightDeptController.js @@ -24,46 +24,47 @@ }) } - $scope.searchData = function(){ - var userType = $('#tabClient > li.active > a').attr('id'); - searchClient($scope.searchQuery, userType); - } + // $scope.searchData = function(){ + // console.log($scope.searchQuery) + // var userType = $('#tabClient > li.active > a').attr('id'); + // searchClient($scope.searchQuery, userType); + // } - function searchClient(searchData, userType){ - console.log(searchData) - console.log(userType) - if(searchData == null || searchData == undefined || searchData == "" && userType == 'fbo'){ - $scope.fboAdmin(); - }else if(searchData == null || searchData == undefined || searchData == "" && userType == 'flightDetp'){ - getAllFbo(); - }else{ - var data = { - "query" : searchData, - "userType" : userType - } - FBOClient.getSearchClient(data).then(function(result) { - for(var i=0; i
{{dept.user.companyName}} {{dept.user.firstName}} {{dept.user.lastName}}