 
 CreateEditSprint = ($repo, $confirm, $rs, $rootscope, lightboxService, $loading) ->
     link = ($scope, $el, attrs) ->
+        hasErrors = false
         createSprint = true
         $scope.sprint = {
             project: null

        submit = (event) ->
            form = $el.find("form").checksley()
            if not form.validate()
                return

            newSprint = angular.copy($scope.sprint)


            $el.find(".last-sprint-name").addClass("disappear")

        $el.on "keyup", ".sprint-name", (event) ->
            if $el.find(".sprint-name").val().length > 0 or hasErrors
                $el.find(".last-sprint-name").addClass("disappear")
            else
                $el.find(".last-sprint-name").removeClass("disappear")
