Add saveNewValue stashed code

stable
Álex Hermida 2018-08-07 17:07:56 +02:00 committed by Alex Hermida
parent 4409cfbbfc
commit 0134ba0d26
1 changed files with 3 additions and 2 deletions

View File

@ -415,8 +415,9 @@ ProjectDueDatesValues = ($log, $repo, $confirm, $location, animationFrame, $tran
promise = $repo.create(valueType, $scope.newValue)
promise.then (data) ->
target.addClass("hidden")
data.days_to_due_abs = data.days_to_due
data.sign = 1
data.sign = $scope.newValue.sign
data.days_to_due_abs = $scope.newValue.days_to_due_abs
$scope.values.push(data)
initializeNewValue()