From 4e35d9b3cc3f8525859baeb91f956029c047ee2f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 31 Aug 2015 11:06:42 +0200 Subject: [PATCH] Remove description in content exists. --- .../app/controllers/_dashboard/activity_stream.js.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee index 9455f3b63..1fb814371 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee @@ -38,10 +38,15 @@ class App.DashboardActivityStream extends App.Controller @render(items) render: (items) -> + + # show description of activity stream if _.isEmpty(items) @$('.activity-description').removeClass('hidden') return + # remove description of activity stream + @$('.activity-description').remove() + items = @prepareForObjectList(items) html = $('
')