Temporary news notif

pull/142/merge
Thibaut 10 years ago
parent 2a2cef1467
commit cca1b37ce0

@ -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: ->

@ -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

Loading…
Cancel
Save