[backport] don't throw object:updated with the related detail objects

stable
Juanfran 2015-07-29 14:59:09 +02:00
parent 9799a24a27
commit f2ea87df39
1 changed files with 0 additions and 11 deletions

View File

@ -87,21 +87,10 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
initializeEventHandlers: -> initializeEventHandlers: ->
@scope.$on "related-tasks:update", => @scope.$on "related-tasks:update", =>
@.loadUs()
@scope.tasks = _.clone(@scope.tasks, false) @scope.tasks = _.clone(@scope.tasks, false)
@scope.$on "attachment:create", => @scope.$on "attachment:create", =>
@analytics.trackEvent("attachment", "create", "create attachment on userstory", 1) @analytics.trackEvent("attachment", "create", "create attachment on userstory", 1)
@rootscope.$broadcast("object:updated")
@scope.$on "attachment:edit", =>
@rootscope.$broadcast("object:updated")
@scope.$on "attachment:delete", =>
@rootscope.$broadcast("object:updated")
@scope.$on "custom-attributes-values:edit", =>
@rootscope.$broadcast("object:updated")
initializeOnDeleteGoToUrl: -> initializeOnDeleteGoToUrl: ->
ctx = {project: @scope.project.slug} ctx = {project: @scope.project.slug}