Merge pull request #393 from taigaio/bug/2424/clearing-new-sprint-errors

Reseting form for clearing errors
stable
David Barragán Merino 2015-03-12 14:47:12 +01:00
commit c41bb2ab45
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ CreateEditSprint = ($repo, $confirm, $rs, $rootscope, lightboxService, $loading)
$repo.remove($scope.sprint).then(onSuccess, onError)
$scope.$on "sprintform:create", (event, projectId) ->
form = $el.find("form").checksley()
form.reset()
createSprint = true
$scope.sprint.project = projectId
$scope.sprint.name = null