Code style improvements.

stable
Andrey Antukh 2014-09-18 11:30:34 +02:00
parent e94e2a41b3
commit b5499f2eef
2 changed files with 10 additions and 4 deletions

View File

@ -101,6 +101,10 @@ UsStatusDirective = ($repo, popoverService) ->
module.directive("tgUsStatus", ["$tgRepo", UsStatusDirective]) module.directive("tgUsStatus", ["$tgRepo", UsStatusDirective])
#############################################################################
## Related Task Status Directive
#############################################################################
RelatedTaskStatusDirective = ($repo, popoverService) -> RelatedTaskStatusDirective = ($repo, popoverService) ->
### ###
Print the status of a related task and a popover to change it. 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]) module.directive("tgRelatedTaskStatus", ["$tgRepo", RelatedTaskStatusDirective])
#############################################################################
## jQuery plugin for Popover
#############################################################################
$.fn.popover = () -> $.fn.popover = () ->
$el = @ $el = @

View File

@ -149,8 +149,6 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
module.controller("UserStoryDetailController", UserStoryDetailController) module.controller("UserStoryDetailController", UserStoryDetailController)
############################################################################# #############################################################################
## User story Main Directive ## User story Main Directive
############################################################################# #############################################################################
@ -188,8 +186,8 @@ UsDirective = ($tgrepo, $log, $location, $confirm, $navUrls, $loading) ->
return {link:link} 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 ## User story status directive