Commit 57e3ddc3b481ed5281b52773761b0dd9193c182b

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

espacio

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
1 angular.module('focaBotoneraLateral') 1 angular.module('focaBotoneraLateral')
2 .service('focaBotoneraLateralService', function() { 2 .service('focaBotoneraLateralService', function() {
3 3
4 this.botones = { 4 this.botones = {
5 salir: false, 5 salir: false,
6 cancelar: false, 6 cancelar: false,
7 pausar: false, 7 pausar: false,
8 guardar: false, 8 guardar: false,
9 funcionGuardar: undefined, 9 funcionGuardar: undefined,
10 pathCancelar: undefined, 10 pathCancelar: undefined,
11 custom: [] 11 custom: []
12 }; 12 };
13 13
14 this.showSalir = function(value) { 14 this.showSalir = function(value) {
15 this.botones.custom = []; 15 this.botones.custom = [];
16 this.botones.salir = value; 16 this.botones.salir = value;
17 }; 17 };
18 this.showPausar = function(value) { 18 this.showPausar = function(value) {
19 this.botones.custom = []; 19 this.botones.custom = [];
20 this.botones.pausar = value; 20 this.botones.pausar = value;
21 }; 21 };
22 this.showCancelar = function(value, path) { 22 this.showCancelar = function(value, path) {
23 this.botones.custom = []; 23 this.botones.custom = [];
24 this.botones.cancelar = value; 24 this.botones.cancelar = value;
25 this.botones.pathCancelar = (path) ? path : undefined; 25 this.botones.pathCancelar = (path) ? path : undefined;
26 }; 26 };
27 this.showGuardar = function(value, funcion) { 27 this.showGuardar = function(value, funcion) {
28 this.botones.custom = []; 28 this.botones.custom = [];
29 this.botones.guardar = value; 29 this.botones.guardar = value;
30 if(value) this.botones.funcionGuardar = funcion; 30 if(value) this.botones.funcionGuardar = funcion;
31 }; 31 };
32 this.addCustomButton = function(title, funcion){ 32 this.addCustomButton = function(title, funcion) {
33 this.botones.custom.push({ 33 this.botones.custom.push({
34 title: title, 34 title: title,
35 funcion: funcion 35 funcion: funcion
36 }); 36 });
37 }; 37 };
38 }); 38 });
39 39