     delete window.think200_is_polling
 
 
-add_click_action_to_test_button = ->
+add_click_to_test_buttons = ->
   $('.test-button').click (e) ->
     e.stopPropagation()
     $('body').focus()


ready = ->
    add_click_to_project_tiles()
    add_click_action_to_test_button()

    $('.project-tile').hover ->
      $(@).toggleClass( 'project-tile-active' )

      $("#project-page-#{p_id}").replaceWith(html)
      # Re-configure javascript events
      $("#project-page-#{p_id} abbr.timeago").timeago();
      add_click_to_test_buttons()
      )


do_poll = ->
  # The page controls polling by setting or not setting
  # the data-api-query value.
  query  = $('#api-query').data('api-query')
  prefix = $('#path-prefix').data('path-prefix')

  if query
    $.post(prefix + '/ajax/' + query)
      .done( (data) -> 
        debug_json(data)
        
        # Update activity indicators
        unless $("#server-status").hasClass('fa-signal')
