diff --git a/app/coffee/modules/common/popovers.coffee b/app/coffee/modules/common/popovers.coffee index 4abf6c95..44f748b2 100644 --- a/app/coffee/modules/common/popovers.coffee +++ b/app/coffee/modules/common/popovers.coffee @@ -101,6 +101,10 @@ UsStatusDirective = ($repo, popoverService) -> module.directive("tgUsStatus", ["$tgRepo", UsStatusDirective]) +############################################################################# +## Related Task Status Directive +############################################################################# + RelatedTaskStatusDirective = ($repo, popoverService) -> ### Print the status of a related task and a popover to change it. @@ -178,6 +182,10 @@ RelatedTaskStatusDirective = ($repo, popoverService) -> module.directive("tgRelatedTaskStatus", ["$tgRepo", RelatedTaskStatusDirective]) +############################################################################# +## jQuery plugin for Popover +############################################################################# + $.fn.popover = () -> $el = @ diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index 1dd2d84c..1e94fe92 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -149,8 +149,6 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin) module.controller("UserStoryDetailController", UserStoryDetailController) - - ############################################################################# ## User story Main Directive ############################################################################# @@ -188,8 +186,8 @@ UsDirective = ($tgrepo, $log, $location, $confirm, $navUrls, $loading) -> return {link:link} -module.directive("tgUsDetail", ["$tgRepo", "$log", "$tgLocation", "$tgConfirm", "$tgNavUrls", "$tgLoading", UsDirective]) - +module.directive("tgUsDetail", ["$tgRepo", "$log", "$tgLocation", "$tgConfirm", + "$tgNavUrls", "$tgLoading", UsDirective]) ############################################################################# ## User story status directive