Remove inapropiate usage of block comments.
parent
2efd46ba54
commit
23a9c000e7
|
@ -103,10 +103,7 @@ module.controller("ProjectValuesController", ProjectValuesController)
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) ->
|
ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) ->
|
||||||
|
|
||||||
#########################
|
|
||||||
## Drag & Drop Link
|
## Drag & Drop Link
|
||||||
#########################
|
|
||||||
|
|
||||||
linkDragAndDrop = ($scope, $el, $attrs) ->
|
linkDragAndDrop = ($scope, $el, $attrs) ->
|
||||||
oldParentScope = null
|
oldParentScope = null
|
||||||
|
@ -131,9 +128,7 @@ ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) ->
|
||||||
$scope.$on "$destroy", ->
|
$scope.$on "$destroy", ->
|
||||||
$el.off()
|
$el.off()
|
||||||
|
|
||||||
#########################
|
|
||||||
## Value Link
|
## Value Link
|
||||||
#########################
|
|
||||||
|
|
||||||
linkValue = ($scope, $el, $attrs) ->
|
linkValue = ($scope, $el, $attrs) ->
|
||||||
$ctrl = $el.controller()
|
$ctrl = $el.controller()
|
||||||
|
@ -279,10 +274,7 @@ module.directive("tgProjectValues", ["$log", "$tgRepo", "$tgConfirm", "$tgLocati
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
ColorSelectionDirective = () ->
|
ColorSelectionDirective = () ->
|
||||||
|
|
||||||
#########################
|
|
||||||
## Color selection Link
|
## Color selection Link
|
||||||
#########################
|
|
||||||
|
|
||||||
link = ($scope, $el, $attrs, $model) ->
|
link = ($scope, $el, $attrs, $model) ->
|
||||||
$ctrl = $el.controller()
|
$ctrl = $el.controller()
|
||||||
|
|
|
@ -75,9 +75,7 @@ class AuthService extends taiga.Service
|
||||||
return true
|
return true
|
||||||
return false
|
return false
|
||||||
|
|
||||||
###################
|
|
||||||
## Http interface
|
## Http interface
|
||||||
###################
|
|
||||||
|
|
||||||
login: (data, type) ->
|
login: (data, type) ->
|
||||||
url = @urls.resolve("auth")
|
url = @urls.resolve("auth")
|
||||||
|
|
|
@ -420,13 +420,11 @@ module.controller("BacklogController", BacklogController)
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
BacklogDirective = ($repo, $rootscope) ->
|
BacklogDirective = ($repo, $rootscope) ->
|
||||||
#########################
|
|
||||||
## Doom line Link
|
## Doom line Link
|
||||||
#########################
|
|
||||||
#TODO: i18n
|
|
||||||
doomLineTemplate = _.template("""
|
doomLineTemplate = _.template("""
|
||||||
<div class="doom-line"><span>Project Scope [Doomline]</span></div>
|
<div class="doom-line"><span>Project Scope [Doomline]</span></div>
|
||||||
""")
|
""")
|
||||||
|
# TODO: i18n
|
||||||
|
|
||||||
linkDoomLine = ($scope, $el, $attrs, $ctrl) ->
|
linkDoomLine = ($scope, $el, $attrs, $ctrl) ->
|
||||||
reloadDoomLine = ->
|
reloadDoomLine = ->
|
||||||
|
@ -464,9 +462,7 @@ BacklogDirective = ($repo, $rootscope) ->
|
||||||
$scope.$on("userstories:loaded", reloadDoomLine)
|
$scope.$on("userstories:loaded", reloadDoomLine)
|
||||||
$scope.$watch "stats", reloadDoomLine
|
$scope.$watch "stats", reloadDoomLine
|
||||||
|
|
||||||
##############################
|
|
||||||
## Move to current sprint link
|
## Move to current sprint link
|
||||||
##############################
|
|
||||||
|
|
||||||
linkToolbar = ($scope, $el, $attrs, $ctrl) ->
|
linkToolbar = ($scope, $el, $attrs, $ctrl) ->
|
||||||
moveToCurrentSprint = (selectedUss) ->
|
moveToCurrentSprint = (selectedUss) ->
|
||||||
|
@ -538,15 +534,12 @@ BacklogDirective = ($repo, $rootscope) ->
|
||||||
if !sidebar.hasClass("active")
|
if !sidebar.hasClass("active")
|
||||||
$ctrl.resetFilters()
|
$ctrl.resetFilters()
|
||||||
|
|
||||||
#########################
|
|
||||||
## Filters Link
|
## Filters Link
|
||||||
#########################
|
|
||||||
|
|
||||||
linkFilters = ($scope, $el, $attrs, $ctrl) ->
|
linkFilters = ($scope, $el, $attrs, $ctrl) ->
|
||||||
$scope.filtersSearch = {}
|
$scope.filtersSearch = {}
|
||||||
$el.on "click", "#show-filters-button", (event) ->
|
$el.on "click", "#show-filters-button", (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
showHideFilter($scope, $el, $ctrl)
|
showHideFilter($scope, $el, $ctrl)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,11 +34,7 @@ module = angular.module("taigaBacklog")
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
BacklogSprintDirective = ($repo, $rootscope) ->
|
BacklogSprintDirective = ($repo, $rootscope) ->
|
||||||
|
|
||||||
#########################
|
|
||||||
## Common parts
|
## Common parts
|
||||||
#########################
|
|
||||||
|
|
||||||
linkCommon = ($scope, $el, $attrs, $ctrl) ->
|
linkCommon = ($scope, $el, $attrs, $ctrl) ->
|
||||||
sprint = $scope.$eval($attrs.tgBacklogSprint)
|
sprint = $scope.$eval($attrs.tgBacklogSprint)
|
||||||
if $scope.$first
|
if $scope.$first
|
||||||
|
|
|
@ -333,11 +333,7 @@ paginatorTemplate = """
|
||||||
"""
|
"""
|
||||||
|
|
||||||
IssuesDirective = ($log, $location) ->
|
IssuesDirective = ($log, $location) ->
|
||||||
|
|
||||||
#########################
|
|
||||||
## Issues Pagination
|
## Issues Pagination
|
||||||
#########################
|
|
||||||
|
|
||||||
template = _.template(paginatorTemplate)
|
template = _.template(paginatorTemplate)
|
||||||
|
|
||||||
linkPagination = ($scope, $el, $attrs, $ctrl) ->
|
linkPagination = ($scope, $el, $attrs, $ctrl) ->
|
||||||
|
@ -416,10 +412,7 @@ IssuesDirective = ($log, $location) ->
|
||||||
$ctrl.selectFilter("page", pagenum)
|
$ctrl.selectFilter("page", pagenum)
|
||||||
$ctrl.loadIssues()
|
$ctrl.loadIssues()
|
||||||
|
|
||||||
#########################
|
|
||||||
## Issues Filters
|
## Issues Filters
|
||||||
#########################
|
|
||||||
|
|
||||||
linkOrdering = ($scope, $el, $attrs, $ctrl) ->
|
linkOrdering = ($scope, $el, $attrs, $ctrl) ->
|
||||||
# Draw the arrow the first time
|
# Draw the arrow the first time
|
||||||
currentOrder = $ctrl.getUrlFilter("orderBy") or "created_date"
|
currentOrder = $ctrl.getUrlFilter("orderBy") or "created_date"
|
||||||
|
@ -445,10 +438,7 @@ IssuesDirective = ($log, $location) ->
|
||||||
icon = if startswith(finalOrder, "-") then "icon-caret-up" else "icon-caret-down"
|
icon = if startswith(finalOrder, "-") then "icon-caret-up" else "icon-caret-down"
|
||||||
target.html("#{target.html()}<span class='icon #{icon}'></span>")
|
target.html("#{target.html()}<span class='icon #{icon}'></span>")
|
||||||
|
|
||||||
#########################
|
|
||||||
## Issues Link
|
## Issues Link
|
||||||
#########################
|
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
$ctrl = $el.controller()
|
$ctrl = $el.controller()
|
||||||
linkOrdering($scope, $el, $attrs, $ctrl)
|
linkOrdering($scope, $el, $attrs, $ctrl)
|
||||||
|
|
|
@ -36,11 +36,6 @@ module = angular.module("taigaKanban")
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
KanbanSortableDirective = ($repo, $rs, $rootscope) ->
|
KanbanSortableDirective = ($repo, $rs, $rootscope) ->
|
||||||
|
|
||||||
#########################
|
|
||||||
## Drag & Drop Link
|
|
||||||
#########################
|
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
timeout 500, ->
|
timeout 500, ->
|
||||||
mainPadding = 32 # px
|
mainPadding = 32 # px
|
||||||
|
|
|
@ -35,11 +35,6 @@ module = angular.module("taigaBacklog")
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
TaskboardSortableDirective = ($repo, $rs, $rootscope) ->
|
TaskboardSortableDirective = ($repo, $rs, $rootscope) ->
|
||||||
|
|
||||||
#########################
|
|
||||||
## Drag & Drop Link
|
|
||||||
#########################
|
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
oldParentScope = null
|
oldParentScope = null
|
||||||
newParentScope = null
|
newParentScope = null
|
||||||
|
|
Loading…
Reference in New Issue