From 628ec131b5c102c28e67a478b01d7fd50b4aba45 Mon Sep 17 00:00:00 2001 From: Luigi Date: Tue, 21 May 2019 13:53:58 -0300 Subject: [PATCH] Subir fotos --- src/js/controller.js | 8 ++++---- src/views/modal-detalles.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 245738f..74370d7 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -11,14 +11,14 @@ angular.module('focaModalDetalles') $scope.mobile = APP === 'cobranza'; $scope.detalles = parametros; - $scope.newFiles = {}; + $scope.files = []; - $scope.$watch('newFiles.files', function() { - $scope.newFiles.files.forEach(function(file) { + $scope.$watch('files', function() { + $scope.files.forEach(function(file) { $scope.detalles.files.push(file); }); validarExtSize(); - }); + }, true); $scope.eliminarImg = function(key) { $scope.detalles.files.splice(key, 1); diff --git a/src/views/modal-detalles.html b/src/views/modal-detalles.html index 26fa621..c1ea8ef 100644 --- a/src/views/modal-detalles.html +++ b/src/views/modal-detalles.html @@ -48,7 +48,7 @@