|
@ -1,7 +1,7 @@ |
|
|
angular.module('app.offerCar', ['pascalprecht.translate', 'ui-leaflet']) |
|
|
angular.module('app.offerCar', ['pascalprecht.translate', 'ui-leaflet']) |
|
|
|
|
|
|
|
|
.controller('OfferCarCtrl', function($scope, $stateParams, $translate, |
|
|
.controller('OfferCarCtrl', function($scope, $stateParams, $translate, |
|
|
$http, $filter) { |
|
|
|
|
|
|
|
|
$http, $filter, $ionicLoading) { |
|
|
|
|
|
|
|
|
$scope.newtravel={}; |
|
|
$scope.newtravel={}; |
|
|
$scope.newtravel.from={ |
|
|
$scope.newtravel.from={ |
|
@ -38,6 +38,8 @@ angular.module('app.offerCar', ['pascalprecht.translate', 'ui-leaflet']) |
|
|
function(data) { // optional
|
|
|
function(data) { // optional
|
|
|
// failed
|
|
|
// failed
|
|
|
console.log(data); |
|
|
console.log(data); |
|
|
|
|
|
$ionicLoading.show({ template: 'Complete all parameters first', noBackdrop: true, duration: 2000 }); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
$scope.getGeo = function(){ |
|
|
$scope.getGeo = function(){ |
|
|