mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-06 19:16:45 +01:00
alert when new travel has empty required params
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<input ng-model="newtravel.date" type="time" placeholder="">
|
||||
</label>
|
||||
<ion-toggle ng-model="newtravel.package" toggle-class="toggle-calm">
|
||||
<img class='o-imgMenu' src="img/package.png" />
|
||||
<i class="icon ion-ios-box"></i>
|
||||
{{'Can_carry_package' | translate}}
|
||||
</ion-toggle>
|
||||
<ion-toggle ng-model="newtravel.collectivized" toggle-class="toggle-calm">
|
||||
|
||||
Reference in New Issue
Block a user