Sharebutton vollständig implementiert.
This commit is contained in:
@@ -222,6 +222,13 @@ module.exports = [
|
||||
"clobbers": [
|
||||
"window.plugins.sqlDB"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-x-socialsharing/www/SocialSharing.js",
|
||||
"id": "cordova-plugin-x-socialsharing.SocialSharing",
|
||||
"clobbers": [
|
||||
"window.plugins.socialsharing"
|
||||
]
|
||||
}
|
||||
];
|
||||
module.exports.metadata =
|
||||
|
||||
@@ -375,8 +375,6 @@ $scope.show = function() {
|
||||
* Rosen konsuieren ENDE
|
||||
*/
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
.controller('BuysCtrl', function($scope, $database,$location,$ionicModal,$ionicLoading,$timeout,$cordovaFile,$ionicPopup) {
|
||||
@@ -390,17 +388,19 @@ $scope.show = function() {
|
||||
|
||||
|
||||
function fill_list(){
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
if(result.length>0){
|
||||
for(i=0;i<result.length;i++){
|
||||
$scope.items.push(result[i]);
|
||||
}
|
||||
} else {
|
||||
$scope.items=[];
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
|
||||
if(result.length>0){
|
||||
for(i=0;i<result.length;i++){
|
||||
$scope.items.push(result[i]);
|
||||
}
|
||||
});
|
||||
$scope.hide($ionicLoading);
|
||||
}
|
||||
else {
|
||||
$scope.items=[];
|
||||
}
|
||||
});
|
||||
$scope.hide($ionicLoading);
|
||||
}
|
||||
|
||||
|
||||
@@ -452,16 +452,42 @@ $scope.show = function() {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$scope.showImages = function(imagesrc) {
|
||||
$scope.showImages = function(imagesrc,imagefile) {
|
||||
|
||||
//Sicherstellen, das Bild im Publicfolder vorhanden ist
|
||||
$cordovaFile.copyFile(cordova.file.applicationStorageDirectory, imagefile, cordova.file.externalRootDirectory + "/WolleRosenKaufen", imagefile)
|
||||
.then(function (success) {
|
||||
// success
|
||||
}, function (error) {
|
||||
// error
|
||||
});
|
||||
|
||||
//Bild im dialog anzeigen
|
||||
$scope.imagesrc=imagesrc;
|
||||
$scope.showModal('templates/image-popover.html');
|
||||
}
|
||||
|
||||
$scope.shareimage = function(imagesrc,imagefile) {
|
||||
|
||||
//Sicherstellen, das Bild im Publicfolder vorhanden ist
|
||||
$cordovaFile.copyFile(cordova.file.applicationStorageDirectory, imagefile, cordova.file.externalRootDirectory + "/WolleRosenKaufen", imagefile)
|
||||
.then(function (success) {
|
||||
// success
|
||||
}, function (error) {
|
||||
// error
|
||||
});
|
||||
|
||||
//Bild im dialog anzeigen
|
||||
$scope.imagesrc=imagesrc;
|
||||
window.plugins.socialsharing.share(null, null, $scope.imagesrc, null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.showModal = function(templateUrl) {
|
||||
$ionicModal.fromTemplateUrl(templateUrl, {
|
||||
scope: $scope,
|
||||
|
||||
@@ -18,11 +18,12 @@
|
||||
</div>
|
||||
|
||||
<ion-item>
|
||||
|
||||
|
||||
<div class="item tabs tabs-secondary tabs-icon-left">
|
||||
<a href="#" class="tab-item"ng-click="deleteBuy(i.id,i.bild)"><i class="icon ion-trash-a button-custom"></i>Löschen</a>
|
||||
<a href="#" class="tab-item" ng-click="showImages(i.appimgpublicpath)"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item"><i class="icon ion-share button-custom"></i>Teilen</a>
|
||||
<a href="#" class="tab-item" ng-click="showImages(i.appimgpublicpath,i.bild)"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item" ng-click="shareimage(i.appimgpublicpath,i.bild)"><i class="icon ion-share button-custom"></i>Teilen</a>
|
||||
</div>
|
||||
|
||||
</ion-item>
|
||||
|
||||
@@ -222,6 +222,13 @@ module.exports = [
|
||||
"clobbers": [
|
||||
"window.plugins.sqlDB"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-x-socialsharing/www/SocialSharing.js",
|
||||
"id": "cordova-plugin-x-socialsharing.SocialSharing",
|
||||
"clobbers": [
|
||||
"window.plugins.socialsharing"
|
||||
]
|
||||
}
|
||||
];
|
||||
module.exports.metadata =
|
||||
|
||||
@@ -375,8 +375,6 @@ $scope.show = function() {
|
||||
* Rosen konsuieren ENDE
|
||||
*/
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
.controller('BuysCtrl', function($scope, $database,$location,$ionicModal,$ionicLoading,$timeout,$cordovaFile,$ionicPopup) {
|
||||
@@ -390,17 +388,19 @@ $scope.show = function() {
|
||||
|
||||
|
||||
function fill_list(){
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
if(result.length>0){
|
||||
for(i=0;i<result.length;i++){
|
||||
$scope.items.push(result[i]);
|
||||
}
|
||||
} else {
|
||||
$scope.items=[];
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
|
||||
if(result.length>0){
|
||||
for(i=0;i<result.length;i++){
|
||||
$scope.items.push(result[i]);
|
||||
}
|
||||
});
|
||||
$scope.hide($ionicLoading);
|
||||
}
|
||||
else {
|
||||
$scope.items=[];
|
||||
}
|
||||
});
|
||||
$scope.hide($ionicLoading);
|
||||
}
|
||||
|
||||
|
||||
@@ -452,16 +452,42 @@ $scope.show = function() {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$scope.showImages = function(imagesrc) {
|
||||
$scope.showImages = function(imagesrc,imagefile) {
|
||||
|
||||
//Sicherstellen, das Bild im Publicfolder vorhanden ist
|
||||
$cordovaFile.copyFile(cordova.file.applicationStorageDirectory, imagefile, cordova.file.externalRootDirectory + "/WolleRosenKaufen", imagefile)
|
||||
.then(function (success) {
|
||||
// success
|
||||
}, function (error) {
|
||||
// error
|
||||
});
|
||||
|
||||
//Bild im dialog anzeigen
|
||||
$scope.imagesrc=imagesrc;
|
||||
$scope.showModal('templates/image-popover.html');
|
||||
}
|
||||
|
||||
$scope.shareimage = function(imagesrc,imagefile) {
|
||||
|
||||
//Sicherstellen, das Bild im Publicfolder vorhanden ist
|
||||
$cordovaFile.copyFile(cordova.file.applicationStorageDirectory, imagefile, cordova.file.externalRootDirectory + "/WolleRosenKaufen", imagefile)
|
||||
.then(function (success) {
|
||||
// success
|
||||
}, function (error) {
|
||||
// error
|
||||
});
|
||||
|
||||
//Bild im dialog anzeigen
|
||||
$scope.imagesrc=imagesrc;
|
||||
window.plugins.socialsharing.share(null, null, $scope.imagesrc, null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.showModal = function(templateUrl) {
|
||||
$ionicModal.fromTemplateUrl(templateUrl, {
|
||||
scope: $scope,
|
||||
|
||||
@@ -18,11 +18,12 @@
|
||||
</div>
|
||||
|
||||
<ion-item>
|
||||
|
||||
|
||||
<div class="item tabs tabs-secondary tabs-icon-left">
|
||||
<a href="#" class="tab-item"ng-click="deleteBuy(i.id,i.bild)"><i class="icon ion-trash-a button-custom"></i>Löschen</a>
|
||||
<a href="#" class="tab-item" ng-click="showImages(i.appimgpublicpath)"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item"><i class="icon ion-share button-custom"></i>Teilen</a>
|
||||
<a href="#" class="tab-item" ng-click="showImages(i.appimgpublicpath,i.bild)"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item" ng-click="shareimage(i.appimgpublicpath,i.bild)"><i class="icon ion-share button-custom"></i>Teilen</a>
|
||||
</div>
|
||||
|
||||
</ion-item>
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<items version="2" >
|
||||
|
||||
<item
|
||||
jar="G:\Projekte\Android\wolle-rosen-kaufen\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\jars\classes.jar"
|
||||
jumboMode="false"
|
||||
revision="23.0.2"
|
||||
sha1="1c8581ae10780ee3b58ed093c37fb9ea21c3f8be">
|
||||
<dex dex="G:\Projekte\Android\wolle-rosen-kaufen\platforms\android\build\intermediates\pre-dexed\debug\CordovaLib-unspecified-debug_baa7b2802c7e608972132669b5434fcf4c170efe.jar" />
|
||||
</item>
|
||||
<item
|
||||
jar="G:\Projekte\Android\wolle-rosen-kaufen\platforms\android\libs\sqlite-connector.jar"
|
||||
jumboMode="false"
|
||||
@@ -15,12 +22,5 @@
|
||||
sha1="15c0a9c99566dad4c9d65fd5921c8a8644e1dc25">
|
||||
<dex dex="G:\Projekte\Android\wolle-rosen-kaufen\platforms\android\build\intermediates\pre-dexed\release\CordovaLib-unspecified-release_a4670fbdfaee2098ca089d4912dd2c9bbd997f8d.jar" />
|
||||
</item>
|
||||
<item
|
||||
jar="G:\Projekte\Android\wolle-rosen-kaufen\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\jars\classes.jar"
|
||||
jumboMode="false"
|
||||
revision="23.0.2"
|
||||
sha1="1c8581ae10780ee3b58ed093c37fb9ea21c3f8be">
|
||||
<dex dex="G:\Projekte\Android\wolle-rosen-kaufen\platforms\android\build\intermediates\pre-dexed\debug\CordovaLib-unspecified-debug_baa7b2802c7e608972132669b5434fcf4c170efe.jar" />
|
||||
</item>
|
||||
|
||||
</items>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -18,7 +18,7 @@ document.getElementById(id+'Link').style.display = 'none';
|
||||
<body>
|
||||
<h1>Lint Report</h1>
|
||||
<div class="titleSeparator"></div>
|
||||
Check performed at Wed Feb 03 13:46:44 CET 2016.<br/>
|
||||
Check performed at Wed Feb 03 14:31:51 CET 2016.<br/>
|
||||
6 errors and 0 warnings found:<br/><br/>
|
||||
<table class="overview">
|
||||
<tr><td></td><td class="categoryColumn"><a href="#Correctness">Correctness</a>
|
||||
|
||||
Reference in New Issue
Block a user