diff --git a/assets/javascripts/app/app.coffee b/assets/javascripts/app/app.coffee index 7554869d..f12604bb 100644 --- a/assets/javascripts/app/app.coffee +++ b/assets/javascripts/app/app.coffee @@ -93,7 +93,7 @@ @visitCount = @store.get('count') or 0 @store.set 'count', ++@visitCount new app.views.Notif 'Share', autoHide: null if @visitCount is 5 - new app.views.Notif 'Thanks', autoHide: null if @visitCount is 10 + new app.views.Notif 'Thanks', autoHide: null if @visitCount is 10 or ((n = app.store.get('news')) and n <= 1417305600000) new app.views.News() reload: -> diff --git a/assets/javascripts/views/misc/news.coffee b/assets/javascripts/views/misc/news.coffee index 04f50270..8d8cbcee 100644 --- a/assets/javascripts/views/misc/news.coffee +++ b/assets/javascripts/views/misc/news.coffee @@ -30,5 +30,5 @@ class app.views.News extends app.views.Notif app.store.get 'news' markAllAsRead: -> - app.store.set 'news', @getLastNewsTime() + app.store.set 'news', @getLastNewsTime() + 1 return