Commit 88abaa681d190af2c08b66e89033703359cabe36
1 parent
d1e8d9afb3
Exists in
master
size auto-populate fixed under company
Showing
2 changed files
with
4 additions
and
10 deletions
Show diff stats
app/partials/viewCompany/viewCompany.controller.js
... | ... | @@ -360,10 +360,7 @@ angular.module('acufuel') |
360 | 360 | CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { |
361 | 361 | $scope.showLoader = false; |
362 | 362 | $scope.aircraftDetails[index].aircraftSizeList = result; |
363 | - /*if(result != null){ | |
364 | - $scope.aircraftData.size = result[0].aircraftSize.id; | |
365 | - console.log("==size===",result[0].aircraftSize.id) | |
366 | - }*/ | |
363 | + | |
367 | 364 | }) |
368 | 365 | } |
369 | 366 | ... | ... |
app/partials/viewCompany/viewCompany.html
... | ... | @@ -776,7 +776,7 @@ |
776 | 776 | <div class="widget-header"> |
777 | 777 | <i class="icon-pencil"></i> |
778 | 778 | <i class="fa fa-tasks" aria-hidden="true"></i> |
779 | - <h3>Add a New Aircraft</h3> | |
779 | + <h3>Add a New Aircraft kd</h3> | |
780 | 780 | <div class="clearfix"></div> |
781 | 781 | </div> |
782 | 782 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
... | ... | @@ -822,14 +822,11 @@ |
822 | 822 | <option ng-repeat="model in aircraftData.aircraftModalList | orderBy">{{model}}</option> |
823 | 823 | </select> |
824 | 824 | </td> |
825 | - <td style="width: 17%">{{aircraftData.size}} | |
825 | + <td style="width: 17%"> | |
826 | 826 | <select class="form-control" ng-model="aircraftData.size" ng-change="getFuelType(aircraftData.size, $index)"> |
827 | 827 | <option value="" disabled>Select</option> |
828 | - <option ng-repeat="size in aircraftData.aircraftSizeList" value="{{size.aircraftSize.id}}">{{size.aircraftSize.size}}</option> | |
828 | + <option ng-repeat="size in aircraftData.aircraftSizeList" value="{{size.aircraftSize.id}}" ng-selected="aircraftData.size = aircraftData.aircraftSizeList[0].aircraftSize.id">{{size.aircraftSize.size}}</option> | |
829 | 829 | </select> |
830 | - | |
831 | - <!-- <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"></select> --> | |
832 | - | |
833 | 830 | </td> |
834 | 831 | <td style="width: 17%"> |
835 | 832 | ... | ... |