From 586ff08577125c3caf80d8d0030a40f4f38701b9 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 28 Aug 2014 09:09:15 +0200 Subject: [PATCH] Adding activeanimation class when needed --- app/coffee/modules/tasks/detail.coffee | 2 ++ app/coffee/modules/userstories/detail.coffee | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index 4bd4c1f8..1757ee0f 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -176,6 +176,8 @@ TaskDirective = ($tgrepo, $log, $location, $confirm, $navUrls) -> $el.on "click", ".add-comment a.button-green", (event) -> event.preventDefault() + $el.find(".comment-list").addClass("activeanimation") + onSuccess = -> $ctrl.loadHistory() diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index 6ddf6ade..678a0dea 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -189,6 +189,8 @@ UsDirective = ($tgrepo, $log, $location, $confirm, $navUrls) -> $el.on "click", ".add-comment a.button-green", (event) -> event.preventDefault() + $el.find(".comment-list").addClass("activeanimation") + onSuccess = -> $ctrl.loadHistory()