mirror of
https://github.com/arnaucube/openEventsPlatformApp.git
synced 2026-02-07 11:46:39 +01:00
map touch bug fixed, and share event improved
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
var urlapi = "http://localhost:3000/api/";
|
var urlapi = "http://localhost:3000/api/";
|
||||||
//var urlapi = "http://192.168.1.34:3000/api/";
|
//var urlapi = "http://192.168.1.33:3000/api/";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
angular.module('app.events', ['pascalprecht.translate'])
|
angular.module('app.events', ['pascalprecht.translate'])
|
||||||
|
|
||||||
.controller('EventsCtrl', function($scope, $http, $ionicModal,
|
.controller('EventsCtrl', function($scope, $http, $ionicModal,
|
||||||
$timeout, $ionicLoading, $filter) {
|
$timeout, $ionicLoading, $filter, $cordovaSocialSharing) {
|
||||||
|
|
||||||
|
|
||||||
$scope.events=[];
|
$scope.events=[];
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
angular.module('app.savedEvents', ['pascalprecht.translate'])
|
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){
|
$scope.share = function(event){
|
||||||
var message = event.description;
|
var message = "[" + event.title + "]" + event.description;
|
||||||
var subject = event.title;
|
/*var subject = event.title;
|
||||||
var file= ['',''];
|
var file= ['',''];*/
|
||||||
var link = "http://duckduckgo.com";
|
var link = "http://duckduckgo.com";
|
||||||
$cordovaSocialSharing
|
$cordovaSocialSharing
|
||||||
.share(message, subject, file, link) // Share via native share sheet
|
.share(message, link) // Share via native share sheet
|
||||||
.then(function(result) {
|
.then(function(result) {
|
||||||
// Success!
|
// Success!
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<ion-view view-title="Map of Events">
|
<ion-view view-title="Map of Events">
|
||||||
<ion-content class="c_blueGrey100">
|
<ion-content class="c_blueGrey100" data-tap-disabled="true">
|
||||||
<leaflet
|
<leaflet
|
||||||
width="100%" height="100%" markers="markers"
|
width="100%" height="100%" markers="markers"
|
||||||
center="center" tiles="tiles" id="map-simple-map"></leaflet>
|
center="center" tiles="tiles" id="map-simple-map"></leaflet>
|
||||||
|
|||||||
Reference in New Issue
Block a user