From 00e06396ab56e1093c3f8b4aa8e504ecf8d5d851 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 4 Mar 2016 11:43:55 +0100 Subject: [PATCH] Fixed rerender issue with missing content. --- .../app/controllers/_dashboard/first_steps.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_dashboard/first_steps.coffee b/app/assets/javascripts/app/controllers/_dashboard/first_steps.coffee index c71c64bb7..2267d36e4 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/first_steps.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/first_steps.coffee @@ -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