Improved fetch interval. Fixed title bug.
This commit is contained in:
parent
b49dbf59cf
commit
d13f36d64b
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ class App.DashboardActivityStream extends App.Controller
|
||||||
@items = []
|
@items = []
|
||||||
|
|
||||||
# refresh list ever 140 sec.
|
# refresh list ever 140 sec.
|
||||||
@interval( @fetch, 140000, 'dashboard_activity_stream' )
|
@interval( @fetch, 1400000, 'dashboard_activity_stream' )
|
||||||
|
|
||||||
fetch: =>
|
fetch: =>
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,6 @@ class Index extends App.Controller
|
||||||
@log 'refetch...', record
|
@log 'refetch...', record
|
||||||
@fetch()
|
@fetch()
|
||||||
|
|
||||||
# set page title
|
|
||||||
@title @overview.meta.name
|
|
||||||
|
|
||||||
# load user collection
|
# load user collection
|
||||||
@loadCollection( type: 'User', data: data.users )
|
@loadCollection( type: 'User', data: data.users )
|
||||||
|
|
||||||
|
@ -112,6 +109,9 @@ class Index extends App.Controller
|
||||||
|
|
||||||
return if Config['ActiveController'] isnt '#ticket_overview_' + @view
|
return if Config['ActiveController'] isnt '#ticket_overview_' + @view
|
||||||
|
|
||||||
|
# set page title
|
||||||
|
@title @overview.meta.name
|
||||||
|
|
||||||
# get total pages
|
# get total pages
|
||||||
pages_total = parseInt( ( @tickets_count / @overview.view[@view_mode].per_page ) + 0.99999 ) || 1
|
pages_total = parseInt( ( @tickets_count / @overview.view[@view_mode].per_page ) + 0.99999 ) || 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue