Commit 0fdd56d3d5ed3b1b5399afb4ebf6cb1c00a7b74c
Exists in
master
Merge branch 'tarefa-4455' of http://ferramentasgo.centralit.com.br:8080/scm/git…
…/cit-grp-contratos into tarefa-4455
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ContratoController.js
... | ... | @@ -186,6 +186,16 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C |
186 | 186 | $scope.setLoading(false); |
187 | 187 | }); |
188 | 188 | }; |
189 | + | |
190 | + $scope.setRascunho = function(rascunho){ | |
191 | + | |
192 | + if (rascunho) { | |
193 | + $scope.contrato = rascunho; | |
194 | + } | |
195 | + $scope.startTimerIntervalSaveDraft($scope.workspace , $scope.contrato); | |
196 | + $scope.edit = true; | |
197 | + $scope.setLoading(false); | |
198 | + }; | |
189 | 199 | |
190 | 200 | |
191 | 201 | $scope.atualizaPercentualGarantia = function (){ | ... | ... |