Commit cc1b095a10d065d6d3e114650ac43a1850b9d5e0
1 parent
961b04a150
Exists in
master
Pasa solo un objeto
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -11,9 +11,7 @@ angular.module('focaModalDetalles') |
11 | 11 | |
12 | 12 | $scope.mobile = APP === 'cobranza'; |
13 | 13 | $scope.detalles = parametros; |
14 | - $scope.newFiles = { | |
15 | - files: [] | |
16 | - }; | |
14 | + $scope.newFiles = {}; | |
17 | 15 | |
18 | 16 | $scope.$watch('newFiles.files', function() { |
19 | 17 | $scope.newFiles.files.forEach(function(file) { |
... | ... | @@ -38,6 +36,7 @@ angular.module('focaModalDetalles') |
38 | 36 | $scope.cambioFoto = function(data) { |
39 | 37 | $scope.detalles.files.push(data.files); |
40 | 38 | }; |
39 | + | |
41 | 40 | $scope.seleccionarFoto = function() { |
42 | 41 | var srcType = Camera.PictureSourceType.SAVEDPHOTOALBUM; |
43 | 42 | var options = setOptions(srcType); |