Only start avatar widget on existing session.

This commit is contained in:
Martin Edenhofer 2015-03-19 11:03:43 +01:00
parent 9f035fb7af
commit 87b2d0f83d

View file

@ -86,11 +86,13 @@ class App.Navigation extends App.Controller
active_tab: active_tab active_tab: active_tab
) )
new App.WidgetAvatar( # only start avatar widget on existing session
el: @$('.js-avatar') if App.Session.get('id')
user_id: App.Session.get('id') new App.WidgetAvatar(
noPopups: true el: @$('.js-avatar')
) user_id: App.Session.get('id')
noPopups: true
)
renderResult: (result = []) => renderResult: (result = []) =>
el = @$('#global-search-result') el = @$('#global-search-result')