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: -> constructor: ->
super super
@interval(@load, 25000) @interval(@load, 20000)
load: => load: =>
return if @lastData && !@el.is(':visible') return if @lastData && !@el.is(':visible')
@ajax( @ajax(
id: 'first_steps' type: 'GET'
type: 'GET' url: @apiPath + '/first_steps'
url: @apiPath + '/first_steps'
success: (data) => success: (data) =>
return if _.isEqual(@lastData, data) return if _.isEqual(@lastData, data)
@lastData = data @lastData = data