diff --git a/www/js/controllers.js b/www/js/controllers.js index 46e6f89..d268c1c 100644 --- a/www/js/controllers.js +++ b/www/js/controllers.js @@ -68,7 +68,7 @@ angular.module('starter.controllers', []) // Save location //var targetPath = cordova.file.externalRootDirectory + 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=targetPath; @@ -82,7 +82,7 @@ angular.module('starter.controllers', []) $scope.items.push($scope.item); //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 $cordovaFile.createDir(cordova.file.externalRootDirectory, "WolleRosenKaufen", false) .then(function (success) { @@ -153,7 +153,6 @@ angular.module('starter.controllers', []) $scope.buyRose = function() { - //alert($scope.preis); if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") { diff --git a/www/templates/tab-buys.html b/www/templates/tab-buys.html index 7cf44a5..6703e67 100644 --- a/www/templates/tab-buys.html +++ b/www/templates/tab-buys.html @@ -9,12 +9,12 @@
-
+

{{i.name}}

- {{i.freitext}} + {{i.bildtext}}