   if query
     $.post(prefix + '/ajax/' + query)
       .done( (data) -> 
-        # console.debug(JSON.stringify(data, undefined, 2))
+        console.debug(JSON.stringify(data, undefined, 2))
         
         # Update activity indicators
         unless $("#server-status").hasClass('fa-signal')

POLL_FREQUENCY = 5000  # milliseconds


add_action_to_project_tiles = ->
    $('.project-tile .panel-body, .project-tile .panel-heading, .project-tile .panel-footer').click ->
      # Disabled for some reason I've forgotten. We should
      # re-try turbolinks on these. (RS)

        # based on the difference in timestamps
        for p_id, proj of data.projects
          if proj.queued == 'false' and project_is_updated(p_id, proj.tested_at)
            console.debug("Trying to update project #{p_id}")
            # Update whichever works:
            update_project_tile(p_id)
            update_project_page(p_id)

        add_click_to_project_tiles()
        )

      .fail( ->
