Fixed problem on enter for new related tasks on user stories

stable
Jesús Espino 2014-10-01 11:20:28 +02:00
parent 7acd29f8b7
commit 8b8967f959
1 changed files with 2 additions and 4 deletions

View File

@ -241,8 +241,7 @@ RelatedTaskCreateFormDirective = ($repo, $compile, $confirm, $tgmodel, $loading)
createTask(newTask).then ->
$el.html("")
$scope.$watch "us", (val) ->
return if not val
taiga.bindOnce $scope, "us", (val) ->
newTask["status"] = $scope.project.default_task_status
newTask["project"] = $scope.project.id
newTask["user_story"] = $scope.us.id
@ -299,8 +298,7 @@ RelatedTasksDirective = ($repo, $rs, $rootscope) ->
$scope.$on "related-tasks:add-new-clicked", ->
$scope.$broadcast("related-tasks:show-form")
$scope.$watch "us", (val) ->
return if not val
taiga.bindOnce $scope, "us", (val) ->
loadTasks()
$scope.$on "$destroy", ->