arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
map touch bug fixed, and share event improved
arnaucode idoctnef@openmailbox.org
Fri, 24 Feb 2017 01:54:39 +0100
commit

2d74104047f629c2c17208cb0a85ad3fc7a17568

parent

24e670eb1c881ca1382f48d67eb96eec71d29c1e

4 files changed, 12 insertions(+), 11 deletions(-)

jump to
M www/js/app.js → 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/";
M www/js/events.js → 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=[];
M www/js/savedEvents.js → 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) {
M www/templates/mapEvents.html → www/templates/mapEvents.html

@@ -1,7 +1,7 @@

<ion-view view-title="Map of Events"> - <ion-content class="c_blueGrey100"> - <leaflet - width="100%" height="100%" markers="markers" - center="center" tiles="tiles" id="map-simple-map"></leaflet> + <ion-content class="c_blueGrey100" data-tap-disabled="true"> + <leaflet + width="100%" height="100%" markers="markers" + center="center" tiles="tiles" id="map-simple-map"></leaflet> </ion-content> </ion-view>