 ## Project values directive
 #############################################################################
 
-ProjectValuesDirective = ($log, $repo, $confirm, $location) ->
+ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) ->
 
     #########################
     ## Drag & Drop Link

            $scope.newValue.order = $scope.maxValueOrder + 1
            promise = $repo.create(valueType, $scope.newValue)
            promise.then =>
                $ctrl.loadValues()
                $el.find(".new-value").hide()
                initializeNewValue()


            }

        initializeNewValue()

        goToBottomList = (focus = false) =>
            table = $el.find(".table-main")

            console.log(table.offset().top + table.height())

            $(document.body).scrollTop(table.offset().top + table.height())

            if focus
                $(".new-value input").focus()

        submit = =>
            promise = $repo.save($scope.project)
            promise.then ->
