Commit 628ec131b5c102c28e67a478b01d7fd50b4aba45
1 parent
cc1b095a10
Exists in
master
Subir fotos
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -11,14 +11,14 @@ angular.module('focaModalDetalles') |
11 | 11 | |
12 | 12 | $scope.mobile = APP === 'cobranza'; |
13 | 13 | $scope.detalles = parametros; |
14 | - $scope.newFiles = {}; | |
14 | + $scope.files = []; | |
15 | 15 | |
16 | - $scope.$watch('newFiles.files', function() { | |
17 | - $scope.newFiles.files.forEach(function(file) { | |
16 | + $scope.$watch('files', function() { | |
17 | + $scope.files.forEach(function(file) { | |
18 | 18 | $scope.detalles.files.push(file); |
19 | 19 | }); |
20 | 20 | validarExtSize(); |
21 | - }); | |
21 | + }, true); | |
22 | 22 | |
23 | 23 | $scope.eliminarImg = function(key) { |
24 | 24 | $scope.detalles.files.splice(key, 1); |
src/views/modal-detalles.html