Remove description in content exists.

This commit is contained in:
Martin Edenhofer 2015-08-31 11:06:42 +02:00
parent afa974a5da
commit 4e35d9b3cc

View file

@ -38,10 +38,15 @@ class App.DashboardActivityStream extends App.Controller
@render(items) @render(items)
render: (items) -> render: (items) ->
# show description of activity stream
if _.isEmpty(items) if _.isEmpty(items)
@$('.activity-description').removeClass('hidden') @$('.activity-description').removeClass('hidden')
return return
# remove description of activity stream
@$('.activity-description').remove()
items = @prepareForObjectList(items) items = @prepareForObjectList(items)
html = $('<div class="activity-entries"></div>') html = $('<div class="activity-entries"></div>')