Remove console logs.
parent
27c8ba8a92
commit
97e1038b5d
|
@ -107,8 +107,6 @@ BacklogDirective = ($repo) ->
|
||||||
resortAndSave()
|
resortAndSave()
|
||||||
|
|
||||||
onAddItem = (event) ->
|
onAddItem = (event) ->
|
||||||
console.log "BacklogDirective:onAdd", event
|
|
||||||
|
|
||||||
item = angular.element(event.item)
|
item = angular.element(event.item)
|
||||||
itemScope = item.scope()
|
itemScope = item.scope()
|
||||||
itemIndex = item.index()
|
itemIndex = item.index()
|
||||||
|
@ -129,7 +127,6 @@ BacklogDirective = ($repo) ->
|
||||||
|
|
||||||
ids = _.map($scope.userstories, "id")
|
ids = _.map($scope.userstories, "id")
|
||||||
index = ids.indexOf(itemScope.us.id)
|
index = ids.indexOf(itemScope.us.id)
|
||||||
console.log "BacklogDirective:onRemove:0:", itemScope.us.id, index
|
|
||||||
|
|
||||||
if index != -1
|
if index != -1
|
||||||
userstories = $scope.userstories
|
userstories = $scope.userstories
|
||||||
|
@ -137,12 +134,10 @@ BacklogDirective = ($repo) ->
|
||||||
|
|
||||||
item.off()
|
item.off()
|
||||||
itemScope.$destroy()
|
itemScope.$destroy()
|
||||||
console.log "BacklogDirective:onRemove:1:", ids
|
|
||||||
console.log "BacklogDirective:onRemove:2:", _.map($scope.userstories, "id")
|
|
||||||
|
|
||||||
dom = $el.find(".backlog-table-body")
|
dom = $el.find(".backlog-table-body")
|
||||||
sortable = new Sortable(dom[0], {
|
sortable = new Sortable(dom[0], {
|
||||||
group: "Kaka",
|
group: "backlog",
|
||||||
selector: ".us-item-row",
|
selector: ".us-item-row",
|
||||||
onUpdate: onUpdateItem
|
onUpdate: onUpdateItem
|
||||||
onAdd: onAddItem
|
onAdd: onAddItem
|
||||||
|
@ -159,14 +154,13 @@ BacklogDirective = ($repo) ->
|
||||||
BacklogSprintDirective = ($repo) ->
|
BacklogSprintDirective = ($repo) ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
$ctrl = $el.closest("div.wrapper").controller()
|
$ctrl = $el.closest("div.wrapper").controller()
|
||||||
console.log $ctrl
|
|
||||||
|
|
||||||
sprint = $scope.$eval($attrs.tgBacklogSprint)
|
sprint = $scope.$eval($attrs.tgBacklogSprint)
|
||||||
if $scope.$first
|
if $scope.$first
|
||||||
$el.addClass("sprint-current")
|
$el.addClass("sprint-current")
|
||||||
|
|
||||||
# if sprint.closed
|
if sprint.closed
|
||||||
# $el.addClass("sprint-closed")
|
$el.addClass("sprint-closed")
|
||||||
|
|
||||||
# Event Handlers
|
# Event Handlers
|
||||||
$el.on "click", ".sprint-summary > a", (event) ->
|
$el.on "click", ".sprint-summary > a", (event) ->
|
||||||
|
@ -189,8 +183,6 @@ BacklogSprintDirective = ($repo) ->
|
||||||
console.log "FINISHED", arguments
|
console.log "FINISHED", arguments
|
||||||
|
|
||||||
onUpdateItem = (event) ->
|
onUpdateItem = (event) ->
|
||||||
console.log "onUpdate", event
|
|
||||||
|
|
||||||
item = angular.element(event.item)
|
item = angular.element(event.item)
|
||||||
itemScope = item.scope()
|
itemScope = item.scope()
|
||||||
|
|
||||||
|
@ -202,8 +194,6 @@ BacklogSprintDirective = ($repo) ->
|
||||||
resortAndSave()
|
resortAndSave()
|
||||||
|
|
||||||
onAddItem = (event) ->
|
onAddItem = (event) ->
|
||||||
console.log "onAdd", event
|
|
||||||
|
|
||||||
item = angular.element(event.item)
|
item = angular.element(event.item)
|
||||||
itemScope = item.scope()
|
itemScope = item.scope()
|
||||||
itemIndex = item.index()
|
itemIndex = item.index()
|
||||||
|
@ -219,28 +209,22 @@ BacklogSprintDirective = ($repo) ->
|
||||||
resortAndSave()
|
resortAndSave()
|
||||||
|
|
||||||
onRemoveItem = (event) ->
|
onRemoveItem = (event) ->
|
||||||
console.log "BacklogSprintDirective:onRemove", event
|
|
||||||
|
|
||||||
item = angular.element(event.item)
|
item = angular.element(event.item)
|
||||||
itemScope = item.scope()
|
itemScope = item.scope()
|
||||||
|
|
||||||
ids = _.map($scope.sprint.user_stories, "id")
|
ids = _.map($scope.sprint.user_stories, "id")
|
||||||
index = ids.indexOf(itemScope.us.id)
|
index = ids.indexOf(itemScope.us.id)
|
||||||
|
|
||||||
console.log "BacklogSprintDirective:onRemove:0:", itemScope.us.id, index
|
|
||||||
|
|
||||||
if index != -1
|
if index != -1
|
||||||
userstories = $scope.sprint.user_stories
|
userstories = $scope.sprint.user_stories
|
||||||
userstories.splice(index, 1)
|
userstories.splice(index, 1)
|
||||||
|
|
||||||
item.off()
|
item.off()
|
||||||
itemScope.$destroy()
|
itemScope.$destroy()
|
||||||
console.log "BacklogSprintDirective:onRemove:1", ids
|
|
||||||
console.log "BacklogSprintDirective:onRemove:2", _.map($scope.sprint.user_stories, "id")
|
|
||||||
|
|
||||||
dom = $el.find(".sprint-table")
|
dom = $el.find(".sprint-table")
|
||||||
sortable = new Sortable(dom[0], {
|
sortable = new Sortable(dom[0], {
|
||||||
group: "Kaka",
|
group: "backlog",
|
||||||
selector: ".milestone-us-item-row",
|
selector: ".milestone-us-item-row",
|
||||||
onUpdate: onUpdateItem,
|
onUpdate: onUpdateItem,
|
||||||
onAdd: onAddItem,
|
onAdd: onAddItem,
|
||||||
|
|
Loading…
Reference in New Issue