BuyTab mit kaufen gefuellt.
This commit is contained in:
parent
246d279c27
commit
4db1623408
@ -68,7 +68,7 @@ angular.module('starter.controllers', [])
|
|||||||
// Save location
|
// Save location
|
||||||
//var targetPath = cordova.file.externalRootDirectory + filename;
|
//var targetPath = cordova.file.externalRootDirectory + filename;
|
||||||
var targetPath = cordova.file.applicationStorageDirectory + filename;
|
var targetPath = cordova.file.applicationStorageDirectory + filename;
|
||||||
var targetpublicPath = $scope.filename, cordova.file.externalRootDirectory + "/WolleRosenKaufen/" + filename;
|
var targetpublicPath = cordova.file.externalRootDirectory + "/WolleRosenKaufen/" + filename;
|
||||||
|
|
||||||
$scope.targetPath='';
|
$scope.targetPath='';
|
||||||
$scope.targetPath=targetPath;
|
$scope.targetPath=targetPath;
|
||||||
@ -82,7 +82,7 @@ angular.module('starter.controllers', [])
|
|||||||
$scope.items.push($scope.item);
|
$scope.items.push($scope.item);
|
||||||
|
|
||||||
//itemName,itemBild,itemBildtext,itemKaufdatum,itemappimgpath,itemappimgpublicpath
|
//itemName,itemBild,itemBildtext,itemKaufdatum,itemappimgpath,itemappimgpublicpath
|
||||||
$database.setBuys($scope.name,$scope.filename,$scope.freitext,'','','');
|
$database.setBuys($scope.name,$scope.filename,$scope.freitext,'','', $scope.targetpublicPath);
|
||||||
//Ordner erstellen auf SD-Karte
|
//Ordner erstellen auf SD-Karte
|
||||||
$cordovaFile.createDir(cordova.file.externalRootDirectory, "WolleRosenKaufen", false)
|
$cordovaFile.createDir(cordova.file.externalRootDirectory, "WolleRosenKaufen", false)
|
||||||
.then(function (success) {
|
.then(function (success) {
|
||||||
@ -153,7 +153,6 @@ angular.module('starter.controllers', [])
|
|||||||
|
|
||||||
$scope.buyRose = function() {
|
$scope.buyRose = function() {
|
||||||
|
|
||||||
//alert($scope.preis);
|
|
||||||
|
|
||||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||||
|
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
<ion-card ng-repeat="i in items" ng-model="items">
|
<ion-card ng-repeat="i in items" ng-model="items">
|
||||||
|
|
||||||
<div class="list card">
|
<div class="list card">
|
||||||
<div class="item item-avatar"> <img src="img/rose1.png">
|
<div class="item item-avatar"> <img ng-src="{{i.appimgpublicpath}}">
|
||||||
<h2>{{i.name}}</h2>
|
<h2>{{i.name}}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-body">
|
<div class="item item-body">
|
||||||
{{i.freitext}}
|
{{i.bildtext}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-item>
|
<ion-item>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user