Commit f371b2e60dc82c46287661bd4587fb008e94372d
1 parent
50e5533a
Exists in
master
redmine #4455 Funcionalidade de rascunho.
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, false); | |
| 196 | + $scope.edit = true; | |
| 197 | + $scope.setLoading(false); | |
| 198 | + }; | |
| 189 | 199 | |
| 190 | 200 | |
| 191 | 201 | $scope.atualizaPercentualGarantia = function (){ | ... | ... |