alert when new travel has empty required params

This commit is contained in:
arnaucode
2017-02-01 23:47:43 +01:00
parent 237dec4dfc
commit eb7cd798b0
2 changed files with 4 additions and 2 deletions

View File

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