'use strict'; //Load controller angular.module('acuefuel') .controller('flightDeptController', function($scope, $stateParams, FBOClient) { $(document).ready(function(){ $('.tab-pane').slimScroll({ height: '600px' }); }); //$('#tab-2').css('display', 'none'); getAllFbo(); function getAllFbo(){ FBOClient.getAllFlightDeptList().then(function(result) { console.log(result) $scope.fboDeptList = result; $scope.clientLength = result.length; $('#tab-1').css('display', 'none'); $('#tab-2').css('display', 'block'); $('.customTab2').addClass('active'); $('.customTab1').removeClass('active'); $('.slimScrollDiv:first-child').css('display', 'none'); }) } // $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