diff --git a/www/js/app.js b/www/js/app.js index 9b64b67..2be6109 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1,5 +1,5 @@ var urlapi = "http://localhost:3000/api/"; -//var urlapi = "http://192.168.1.34:3000/api/"; +//var urlapi = "http://192.168.1.33:3000/api/"; diff --git a/www/js/events.js b/www/js/events.js index 8d53b90..22462bc 100644 --- a/www/js/events.js +++ b/www/js/events.js @@ -1,7 +1,7 @@ angular.module('app.events', ['pascalprecht.translate']) .controller('EventsCtrl', function($scope, $http, $ionicModal, - $timeout, $ionicLoading, $filter) { + $timeout, $ionicLoading, $filter, $cordovaSocialSharing) { $scope.events=[]; diff --git a/www/js/savedEvents.js b/www/js/savedEvents.js index aee7722..424cdc8 100644 --- a/www/js/savedEvents.js +++ b/www/js/savedEvents.js @@ -1,14 +1,15 @@ angular.module('app.savedEvents', ['pascalprecht.translate']) -.controller('SavedEventsCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) { +.controller('SavedEventsCtrl', function($scope, $http, $ionicModal, + $timeout, $ionicLoading, $filter, $cordovaSocialSharing) { $scope.share = function(event){ - var message = event.description; - var subject = event.title; - var file= ['','']; + var message = "[" + event.title + "]" + event.description; + /*var subject = event.title; + var file= ['',''];*/ var link = "http://duckduckgo.com"; $cordovaSocialSharing - .share(message, subject, file, link) // Share via native share sheet + .share(message, link) // Share via native share sheet .then(function(result) { // Success! }, function(err) { diff --git a/www/templates/mapEvents.html b/www/templates/mapEvents.html index 65bebd8..5a32ab0 100644 --- a/www/templates/mapEvents.html +++ b/www/templates/mapEvents.html @@ -1,7 +1,7 @@ - - + +