Commit cb25bbd6d677c85587516850e1d40dd3ba72d4ae
1 parent
89b0e837f4
Exists in
master
and in
1 other branch
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
src/js/service.js
... | ... | @@ -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; }, |