Remove description in content exists.
This commit is contained in:
parent
afa974a5da
commit
4e35d9b3cc
1 changed files with 5 additions and 0 deletions
|
@ -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>')
|
||||||
|
|
Loading…
Reference in a new issue