[backport] don't throw object:updated with the related detail objects
parent
9799a24a27
commit
f2ea87df39
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue