diff --git a/package.json b/package.json index 8591186..4608584 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "repository": { "type": "git", - "url": "git@debonline.dyndns.org:npm/wrapper-demo.git" + "url": "git@debonline.dyndns.org:npm/wrapper-demo.git#develop" }, "author": "Foca Software", "license": "ISC", @@ -36,63 +36,63 @@ "bootstrap": "^4.3.1", "chart.js": "2.7.3", "excel-builder": "2.0.3", - "foca-abm-chofer": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-chofer.git", - "foca-abm-plazo-pago": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-plazo-pago.git", - "foca-abm-precios-condiciones": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-precios-condiciones.git", - "foca-abm-vehiculo": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-vehiculo.git", - "foca-abm-vendedor-cobrador": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-vendedor-cobrador.git", - "foca-activar-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-activar-hoja-ruta.git", - "foca-admin-seguimiento": "git+ssh://git@debonline.dyndns.org:npm/foca-admin-seguimiento.git", - "foca-agendar-visita": "git+ssh://git@debonline.dyndns.org:npm/foca-agendar-visita.git", - "foca-autorizar-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-autorizar-nota-pedido.git", - "foca-botonera-facturador": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-facturador.git", - "foca-botonera-lateral": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-lateral.git", - "foca-botonera-principal": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-principal.git", - "foca-busqueda-cliente": "git+ssh://git@debonline.dyndns.org:npm/foca-busqueda-cliente.git", - "foca-cabecera-facturador": "git+ssh://git@debonline.dyndns.org:npm/foca-cabecera-facturador.git", - "foca-configuracion": "git+ssh://git@debonline.dyndns.org:npm/foca-configuracion.git", - "foca-configurar-terminal": "git+ssh://git@debonline.dyndns.org:npm/foca-configurar-terminal.git", - "foca-crear-cobranza": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-cobranza.git", - "foca-crear-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-hoja-ruta.git", - "foca-crear-login": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-login.git", - "foca-crear-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-nota-pedido.git", - "foca-crear-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-remito.git", - "foca-directivas": "git+ssh://git@debonline.dyndns.org:npm/foca-directivas.git", - "foca-estado-cisternas": "git+ssh://git@debonline.dyndns.org:npm/foca-estado-cisternas.git", - "foca-filtros": "git+ssh://git@debonline.dyndns.org:npm/foca-filtros.git", - "foca-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-hoja-ruta.git", - "foca-informes": "git+ssh://git@debonline.dyndns.org:npm/foca-informes.git", - "foca-login": "git+ssh://git@debonline.dyndns.org:npm/foca-login.git", - "foca-logistica-pedido-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-logistica-pedido-ruta.git", - "foca-modal": "git+ssh://git@debonline.dyndns.org:npm/foca-modal.git", - "foca-modal-busqueda-productos": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-busqueda-productos.git", - "foca-modal-cheque": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cheque.git", - "foca-modal-cobranza": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cobranza.git", - "foca-modal-cotizacion": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cotizacion.git", - "foca-modal-detalle-cisternas": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-detalle-cisternas.git", - "foca-modal-detalle-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-detalle-hoja-ruta.git", - "foca-modal-detalles": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-detalles.git", - "foca-modal-domicilio": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-domicilio.git", - "foca-modal-efectivo": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-efectivo.git", - "foca-modal-factura": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-factura.git", - "foca-modal-factura-detalle": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-factura-detalle.git", - "foca-modal-flete": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-flete.git", - "foca-modal-grafico-cisternas": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-grafico-cisternas.git", - "foca-modal-informe": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-informe.git", - "foca-modal-lista-precio": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-lista-precio.git", - "foca-modal-localizar": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-localizar.git", - "foca-modal-login": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-login.git", - "foca-modal-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-nota-pedido.git", - "foca-modal-precio-condiciones": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-precio-condiciones.git", - "foca-modal-punto-descarga": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-punto-descarga.git", - "foca-modal-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-remito.git", - "foca-modal-resumen-cuenta": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-resumen-cuenta.git", - "foca-modal-tarifa-flete": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-tarifa-flete.git", - "foca-modal-unidad-medida": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-unidad-medida.git", - "foca-nombre-empresa": "git+ssh://git@debonline.dyndns.org:npm/foca-nombre-empresa.git", - "foca-parametros": "git+ssh://git@debonline.dyndns.org:npm/foca-parametros.git", - "foca-seguimiento": "git+ssh://git@debonline.dyndns.org:npm/foca-seguimiento.git", - "foca-teclado": "git+ssh://git@debonline.dyndns.org:npm/foca-teclado.git", + "foca-abm-chofer": "git+http://git.focasoftware.com/npm/foca-abm-chofer.git#develop", + "foca-abm-plazo-pago": "git+http://git.focasoftware.com/npm/foca-abm-plazo-pago.git#develop", + "foca-abm-precios-condiciones": "git+http://git.focasoftware.com/npm/foca-abm-precios-condiciones.git#develop", + "foca-abm-vehiculo": "git+http://git.focasoftware.com/npm/foca-abm-vehiculo.git#develop", + "foca-abm-vendedor-cobrador": "git+http://git.focasoftware.com/npm/foca-abm-vendedor-cobrador.git#develop", + "foca-activar-hoja-ruta": "git+http://git.focasoftware.com/npm/foca-activar-hoja-ruta.git#develop", + "foca-admin-seguimiento": "git+http://git.focasoftware.com/npm/foca-admin-seguimiento.git#develop", + "foca-agendar-visita": "git+http://git.focasoftware.com/npm/foca-agendar-visita.git#develop", + "foca-autorizar-nota-pedido": "git+http://git.focasoftware.com/npm/foca-autorizar-nota-pedido.git#develop", + "foca-botonera-facturador": "git+http://git.focasoftware.com/npm/foca-botonera-facturador.git#develop", + "foca-botonera-lateral": "git+http://git.focasoftware.com/npm/foca-botonera-lateral.git#develop", + "foca-botonera-principal": "git+http://git.focasoftware.com/npm/foca-botonera-principal.git#develop", + "foca-busqueda-cliente": "git+http://git.focasoftware.com/npm/foca-busqueda-cliente.git#develop", + "foca-cabecera-facturador": "git+http://git.focasoftware.com/npm/foca-cabecera-facturador.git#develop", + "foca-configuracion": "git+http://git.focasoftware.com/npm/foca-configuracion.git#develop", + "foca-configurar-terminal": "git+http://git.focasoftware.com/npm/foca-configurar-terminal.git#develop", + "foca-crear-cobranza": "git+http://git.focasoftware.com/npm/foca-crear-cobranza.git#develop", + "foca-crear-hoja-ruta": "git+http://git.focasoftware.com/npm/foca-crear-hoja-ruta.git#develop", + "foca-crear-login": "git+http://git.focasoftware.com/npm/foca-crear-login.git#develop", + "foca-crear-nota-pedido": "git+http://git.focasoftware.com/npm/foca-crear-nota-pedido.git#develop", + "foca-crear-remito": "git+http://git.focasoftware.com/npm/foca-crear-remito.git#develop", + "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git#develop", + "foca-estado-cisternas": "git+http://git.focasoftware.com/npm/foca-estado-cisternas.git#develop", + "foca-filtros": "git+http://git.focasoftware.com/npm/foca-filtros.git#develop", + "foca-hoja-ruta": "git+http://git.focasoftware.com/npm/foca-hoja-ruta.git#develop", + "foca-informes": "git+http://git.focasoftware.com/npm/foca-informes.git#develop", + "foca-login": "git+http://git.focasoftware.com/npm/foca-login.git#develop", + "foca-logistica-pedido-ruta": "git+http://git.focasoftware.com/npm/foca-logistica-pedido-ruta.git#develop", + "foca-modal": "git+http://git.focasoftware.com/npm/foca-modal.git#develop", + "foca-modal-busqueda-productos": "git+http://git.focasoftware.com/npm/foca-modal-busqueda-productos.git#develop", + "foca-modal-cheque": "git+http://git.focasoftware.com/npm/foca-modal-cheque.git#develop", + "foca-modal-cobranza": "git+http://git.focasoftware.com/npm/foca-modal-cobranza.git#develop", + "foca-modal-cotizacion": "git+http://git.focasoftware.com/npm/foca-modal-cotizacion.git#develop", + "foca-modal-detalle-cisternas": "git+http://git.focasoftware.com/npm/foca-modal-detalle-cisternas.git#develop", + "foca-modal-detalle-hoja-ruta": "git+http://git.focasoftware.com/npm/foca-modal-detalle-hoja-ruta.git#develop", + "foca-modal-detalles": "git+http://git.focasoftware.com/npm/foca-modal-detalles.git#develop", + "foca-modal-domicilio": "git+http://git.focasoftware.com/npm/foca-modal-domicilio.git#develop", + "foca-modal-efectivo": "git+http://git.focasoftware.com/npm/foca-modal-efectivo.git#develop", + "foca-modal-factura": "git+http://git.focasoftware.com/npm/foca-modal-factura.git#develop", + "foca-modal-factura-detalle": "git+http://git.focasoftware.com/npm/foca-modal-factura-detalle.git#develop", + "foca-modal-flete": "git+http://git.focasoftware.com/npm/foca-modal-flete.git#develop", + "foca-modal-grafico-cisternas": "git+http://git.focasoftware.com/npm/foca-modal-grafico-cisternas.git#develop", + "foca-modal-informe": "git+http://git.focasoftware.com/npm/foca-modal-informe.git#develop", + "foca-modal-lista-precio": "git+http://git.focasoftware.com/npm/foca-modal-lista-precio.git#develop", + "foca-modal-localizar": "git+http://git.focasoftware.com/npm/foca-modal-localizar.git#develop", + "foca-modal-login": "git+http://git.focasoftware.com/npm/foca-modal-login.git#develop", + "foca-modal-nota-pedido": "git+http://git.focasoftware.com/npm/foca-modal-nota-pedido.git#develop", + "foca-modal-precio-condiciones": "git+http://git.focasoftware.com/npm/foca-modal-precio-condiciones.git#develop", + "foca-modal-punto-descarga": "git+http://git.focasoftware.com/npm/foca-modal-punto-descarga.git#develop", + "foca-modal-remito": "git+http://git.focasoftware.com/npm/foca-modal-remito.git#develop", + "foca-modal-resumen-cuenta": "git+http://git.focasoftware.com/npm/foca-modal-resumen-cuenta.git#develop", + "foca-modal-tarifa-flete": "git+http://git.focasoftware.com/npm/foca-modal-tarifa-flete.git#develop", + "foca-modal-unidad-medida": "git+http://git.focasoftware.com/npm/foca-modal-unidad-medida.git#develop", + "foca-nombre-empresa": "git+http://git.focasoftware.com/npm/foca-nombre-empresa.git#develop", + "foca-parametros": "git+http://git.focasoftware.com/npm/foca-parametros.git#develop", + "foca-seguimiento": "git+http://git.focasoftware.com/npm/foca-seguimiento.git#develop", + "foca-teclado": "git+http://git.focasoftware.com/npm/foca-teclado.git#develop", "font-awesome": "^4.7.0", "gulp-angular-templatecache": "^2.2.7", "gulp-htmlmin": "^5.0.1", diff --git a/src/js/controller.js b/src/js/controller.js index 0c72727..a040d7b 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -3,7 +3,8 @@ angular.module('appWrapperDemo') '$scope', '$rootScope', '$timeout', - function($scope, $rootScope, $timeout) { + '$uibModalStack', + function($scope, $rootScope, $timeout, $uibModalStack) { $scope.usarTeclado = false; $rootScope.$broadcast('usarTeclado', false); $scope.mostrarTeclado = false; @@ -37,5 +38,10 @@ angular.module('appWrapperDemo') } }, 150); }); + + // Close all modals + $rootScope.$on('$locationChangeSuccess', function() { + $uibModalStack.dismissAll('close'); + }); } ]);