thorpedosg

zJFKwKvD

Aug 6th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. var app = angular.module("contamaxx", ['ngMaterial', 'ngMessages']);
  2.  
  3. app.controller("reportesAdminController", function($scope, $http, $window, $filter, $mdDialog) {
  4.  
  5. $scope.mostrarAlerta("Se debe adicionar el campo Motivo del Anexo Nuevo", true);
  6.  
  7.  
  8. $scope.mostrarAlerta = function(texto, accion){
  9. $mdDialog.show({
  10. controller: 'crearpolizasController',
  11. template:
  12. '' +
  13. ' Seguros
  14. '+texto+'' +
  15. ' ' +
  16. ' ' +
  17. ' Continuar' +
  18. ' '+
  19. ' ' +
  20. '',
  21. hasBackdrop: false,
  22. clickOutsideToClose: true,
  23. controller: DialogController
  24. }).then(function(){
  25. if(accion){
  26. }else{
  27. return true;
  28. }
  29. },function(){
  30. });
  31. }
  32.  
  33. });
Add Comment
Please, Sign In to add comment