Commit cb25bbd6d677c85587516850e1d40dd3ba72d4ae

Authored by Jose Pinto
1 parent 89b0e837f4
Exists in master and in 1 other branch develop

agrego parametro size a modal y busca cuando inicia

Showing 2 changed files with 5 additions and 2 deletions   Show diff stats
src/js/controllerModal.js
... ... @@ -38,6 +38,7 @@ angular.module('focaModal')
38 38 );
39 39 }
40 40 };
  41 + $scope.busquedaPress(13);
41 42  
42 43 $scope.search = function(pressed) {
43 44 if($scope.entidades.length > 0) {
... ... @@ -31,11 +31,13 @@ angular.module('focaModal')
31 31 }
32 32 );
33 33 },
34   - modal: function(columnas, query, titulo) {
  34 + modal: function(columnas, query, titulo, size) {
  35 + size = (typeof size === 'undefined') ? 'lg' : size;
  36 +
35 37 return $uibModal.open({
36 38 templateUrl: 'foca-modal.html',
37 39 controller: 'focaModalController',
38   - size: 'lg',
  40 + size: size,
39 41 resolve: {
40 42 columnas: function() { return columnas; },
41 43 query: function() { return query; },