Improved fetch interval. Fixed title bug.

This commit is contained in:
Martin Edenhofer 2012-05-09 10:26:06 +02:00
parent b49dbf59cf
commit d13f36d64b
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ class App.DashboardActivityStream extends App.Controller
@items = []
# refresh list ever 140 sec.
@interval( @fetch, 140000, 'dashboard_activity_stream' )
@interval( @fetch, 1400000, 'dashboard_activity_stream' )
fetch: =>

View file

@ -76,9 +76,6 @@ class Index extends App.Controller
@log 'refetch...', record
@fetch()
# set page title
@title @overview.meta.name
# load user collection
@loadCollection( type: 'User', data: data.users )
@ -112,6 +109,9 @@ class Index extends App.Controller
return if Config['ActiveController'] isnt '#ticket_overview_' + @view
# set page title
@title @overview.meta.name
# get total pages
pages_total = parseInt( ( @tickets_count / @overview.view[@view_mode].per_page ) + 0.99999 ) || 1