-issuesModule = angular.module('greenmine.directives.issues', [])
+module = angular.module('greenmine.directives.issues', [])
 
-
-gmIssuesSortConstructor = ($parse) -> (scope, elm, attrs) ->
+GmIssuesSortDirective = ($parse) -> (scope, elm, attrs) ->
     element = angular.element(elm)
 
     element.on "click", ".issue-sortable-field", (event) ->

    scope.$watch 'issues', (value) ->
        redrawChart() if value

issuesModule.directive("gmIssuesCreationGraph", gmIssuesCreationGraphConstructor)

        event.preventDefault()
        scope.$digest()

module.directive('gmIssuesSort', ["$parse", GmIssuesSortDirective])


GmIssueChangesDirective = ->
    validFields = ["priority", "status", "severity", "tags", "subject", "description", "assigned_to"]
    template = _.template($("#change-template").html())

