From 4ac60d56221343a6b8fcf14d7e06913d8e0fa05d Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Fri, 15 Feb 2019 11:24:38 -0300 Subject: [PATCH] =?UTF-8?q?disable=20guardar=20si=20no=20ingresa=20contras?= =?UTF-8?q?e=C3=B1a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller.js | 8 ++++---- src/views/modal-login.html | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index c11aeed..0aa377f 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -10,7 +10,7 @@ angular.module('focaModalLogin') $scope.usuario = { login: '', pass: '' - } + }; if (parametros.tipo == 'Transportistas') { $scope.usuario.login = parametros.cuenta.dni; @@ -41,10 +41,10 @@ angular.module('focaModalLogin') focaModalLoginService.postLogin(result).then(function(data) { $uibModalInstance.close(data); }); - } + }; $scope.cancel = function() { $uibModalInstance.dismiss(); - } + }; } - ]); \ No newline at end of file + ]); diff --git a/src/views/modal-login.html b/src/views/modal-login.html index 5479a8b..2181438 100644 --- a/src/views/modal-login.html +++ b/src/views/modal-login.html @@ -36,5 +36,9 @@ -- 1.9.1