Browse Source

Remove temporary news notif

Thibaut 11 years ago
parent
commit
ebb39e95e8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      assets/javascripts/app/app.coffee
  2. 1 1
      assets/javascripts/views/misc/news.coffee

+ 1 - 1
assets/javascripts/app/app.coffee

@@ -94,7 +94,7 @@
     visitCount = @settings.get('count')
     visitCount = @settings.get('count')
     @settings.set 'count', ++visitCount
     @settings.set 'count', ++visitCount
     new app.views.Notif 'Share', autoHide: null if visitCount is 5
     new app.views.Notif 'Share', autoHide: null if visitCount is 5
-    new app.views.Notif 'Thanks', autoHide: null if visitCount is 10 or ((n = @settings.get('news')) and n <= 1417305600000)
+    new app.views.Notif 'Thanks', autoHide: null if visitCount is 10
     new app.views.News()
     new app.views.News()
 
 
   reload: ->
   reload: ->

+ 1 - 1
assets/javascripts/views/misc/news.coffee

@@ -30,5 +30,5 @@ class app.views.News extends app.views.Notif
     app.settings.get 'news'
     app.settings.get 'news'
 
 
   markAllAsRead: ->
   markAllAsRead: ->
-    app.settings.set 'news', @getLastNewsTime() + 1
+    app.settings.set 'news', @getLastNewsTime()
     return
     return