Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Set markdown flavor to be Github
Browse files Browse the repository at this point in the history
jakerenzella committed Oct 1, 2019
1 parent bfc566e commit 00643ed
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/app/tasks/task-comments-viewer/task-comments-viewer.coffee
Original file line number Diff line number Diff line change
@@ -14,8 +14,9 @@ angular.module("doubtfire.tasks.task-comments-viewer", [])
autofocus: '@?'
refocusOnTaskChange: '@?'

controller: ($scope, $modal, $state, $sce, $timeout, CommentResourceService, CommentsModal, listenerService, currentUser, TaskComment, taskService, alertService, analyticsService, Task) ->
controller: ($scope, $modal, $state, $sce, $timeout, markdown, CommentResourceService, CommentsModal, listenerService, currentUser, TaskComment, taskService, alertService, analyticsService, Task) ->
listeners = listenerService.listenTo($scope)
markdown.setFlavor('github')

$scope.uploadFiles = (files) ->
if typeof files != "undefined"
@@ -87,15 +88,4 @@ angular.module("doubtfire.tasks.task-comments-viewer", [])
analyticsService.event "View Task Comments", "Deleted existing comment"
(response) ->
alertService.add("danger", response.data.error, 2000)
)

.directive 'ngRightClick', ($parse) ->
(scope, element, attrs) ->
fn = $parse(attrs.ngRightClick)
element.bind 'contextmenu', (event) ->
scope.$apply ->
event.preventDefault()
fn scope, $event: event
return
return
return
)

0 comments on commit 00643ed

Please sign in to comment.