Inyect tgConfirm into AttachmentsDirective

stable
David Barragán Merino 2014-08-06 17:07:05 +02:00
parent f70cfc4edc
commit 0290e68b13
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module = angular.module("taigaCommon")
## Attachments Directive
#############################################################################
AttachmentsDirective = ($repo, $rs) ->
AttachmentsDirective = ($repo, $rs, $confirm) ->
link = ($scope, $el, $attrs, $model) ->
$ctrl = $el.controller()
$scope.uploadingFiles = []
@ -150,7 +150,7 @@ AttachmentsDirective = ($repo, $rs) ->
require: "ngModel"
}
module.directive("tgAttachments", ["$tgRepo", "$tgResources", AttachmentsDirective])
module.directive("tgAttachments", ["$tgRepo", "$tgResources", "$tgConfirm", AttachmentsDirective])
#############################################################################