Remove content if no session exists.

This commit is contained in:
Martin Edenhofer 2016-02-22 21:48:51 +01:00
parent 10f13cb618
commit fa653b3743

View file

@ -115,6 +115,10 @@ class App.OnlineNotificationWidget extends App.Controller
App.OnlineNotification.fetchFull(load)
updateContent: =>
if !@Session.get()
$('.js-notificationsContainer .popover-content').html('')
return
items = App.OnlineNotification.search(sortBy: 'created_at', order: 'DESC')
counter = 0
for item in items