Blame view
app/views/fbo-Clients/fboClient.controller.js
1.37 KB
7379f005b
|
1 2 3 |
'use strict'; //Load controller |
9835dbe3e
|
4 |
angular.module('acuefuel') |
7379f005b
|
5 |
|
988ec12e4
|
6 7 8 9 10 |
.controller('fboClientsController', function($scope, $stateParams, FBOClient) { $(document).ready(function(){ $('.tab-pane').slimScroll({ height: '600px' }); |
7379f005b
|
11 |
}); |
988ec12e4
|
12 13 14 15 16 17 18 19 20 21 |
$('#tab-2').css('display', 'none'); getAllFbo(); function getAllFbo(){ FBOClient.getALlFBOList().then(function(result) { console.log(result) $scope.fboClient = result; $scope.clientLength = result.length; }) } |
7379f005b
|
22 23 |
$scope.fboAdmin = function(){ |
988ec12e4
|
24 |
getAllFbo(); |
7379f005b
|
25 26 27 28 29 30 31 32 33 |
$('#tab-1').css('display', 'block'); $('#tab-2').css('display', 'none'); $('.customTab1').addClass('active'); $('.customTab2').removeClass('active'); $('.slimScrollDiv:first-child').css('display', 'block'); } $scope.fboDept = function(){ |
988ec12e4
|
34 35 36 37 38 |
FBOClient.getAllFlightDeptList().then(function(result) { console.log(result) $scope.fboDeptList = result; $scope.clientLength = result.length; }) |
7379f005b
|
39 40 41 42 43 44 45 46 |
$('#tab-1').css('display', 'none'); $('#tab-2').css('display', 'block'); $('.customTab2').addClass('active'); $('.customTab1').removeClass('active'); $('.slimScrollDiv:first-child').css('display', 'none'); } }); |