 ## Editable Wiki Content Directive
 #############################################################################
 
-EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $location, $navUrls,
-                                $analytics, $qqueue) ->
-
+EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $analytics, $qqueue) ->
     link = ($scope, $el, $attrs, $model) ->
         isEditable = ->
             return $scope.project.my_permissions.indexOf("modify_wiki_page") != -1

            $el.find(".edit-wiki-content").remove()

        cancelEdition = ->
            return if !$scope.wiki.html

            if $scope.wiki.id
                $scope.$apply () => $scope.wiki.revert()
                switchToReadMode()
            else
                ctx = {project: $scope.projectSlug}
                $location.path($navUrls.resolve("project-wiki", ctx))

        getSelectedText = ->
            if $window.getSelection

    }

module.directive("tgEditableWikiContent", ["$window", "$document", "$tgRepo", "$tgConfirm", "$tgLoading",
                                           "$tgAnalytics", "$tgQqueue", EditableWikiContentDirective])
