diff --git a/www/js/travel.js b/www/js/travel.js index fb7c4f3..7584b56 100644 --- a/www/js/travel.js +++ b/www/js/travel.js @@ -95,7 +95,7 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet']) .then(function(data) { console.log("data: "); console.log(data); - if(data.success==false){ + if(data.data.success==false){ $ionicLoading.show({template: 'Error on unjoin', noBackdrop: true, duration: 2000}); }else{ $scope.travel=data.data; @@ -114,7 +114,7 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet']) .then(function(data) { console.log("data: "); console.log(data); - if(data.success==false){ + if(data.data.success==false){ $ionicLoading.show({template: 'Error on unjoin', noBackdrop: true, duration: 2000}); }else{ $scope.travel=data.data; @@ -134,8 +134,8 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet']) .then(function(data) { console.log("data: "); console.log(data); - if(data.success==false){ - $ionicLoading.show({template: 'Error on unjoin', noBackdrop: true, duration: 2000}); + if(data.data.success==false){ + $ionicLoading.show({template: 'Error on declining', noBackdrop: true, duration: 2000}); }else{ $scope.travel=data.data; console.log("success"); @@ -155,8 +155,8 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet']) .then(function(data) { console.log("data: "); console.log(data); - if(data.success==false){ - $ionicLoading.show({template: 'Error on unjoin', noBackdrop: true, duration: 2000}); + if(data.data.success==false){ + $ionicLoading.show({template: 'Error on accepting', noBackdrop: true, duration: 2000}); }else{ $scope.travel=data.data; console.log("success"); @@ -176,7 +176,7 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet']) .then(function(data) { console.log("data: "); console.log(data); - if(data.success==false){ + if(data.data.success==false){ $ionicLoading.show({template: 'Error on unjoin', noBackdrop: true, duration: 2000}); }else{ $scope.travel=data.data; diff --git a/www/templates/login.html b/www/templates/login.html index 6c903e5..71666c2 100644 --- a/www/templates/login.html +++ b/www/templates/login.html @@ -30,6 +30,7 @@
--> diff --git a/www/templates/search.html b/www/templates/search.html index 8ab4b1e..f2f29f3 100644 --- a/www/templates/search.html +++ b/www/templates/search.html @@ -10,20 +10,19 @@ Travels - -- {{travel.description}} + {{travel.from.name}} +
++ {{travel.to.name}}
- -{{travel.from}} --> {{travel.to}}
{{travel.from.name}}
-{{travel.to.name}}
++ {{travel.from.name}} +
++ {{travel.to.name}} +