Fixed rerender issue with missing content.

This commit is contained in:
Martin Edenhofer 2016-03-04 11:43:55 +01:00
parent 68278ca828
commit 00e06396ab

View file

@ -7,14 +7,13 @@ class App.DashboardFirstSteps extends App.Controller
constructor: ->
super
@interval(@load, 25000)
@interval(@load, 20000)
load: =>
return if @lastData && !@el.is(':visible')
@ajax(
id: 'first_steps'
type: 'GET'
url: @apiPath + '/first_steps'
type: 'GET'
url: @apiPath + '/first_steps'
success: (data) =>
return if _.isEqual(@lastData, data)
@lastData = data