       loadStatments(data, url)
       $.scrollTo('.transcripts', 100, {offset: -40})
 
-  $('#only_as_presenter').change (e) ->
-    search_params = buildSearchParams()
-    $.get "#{url}#{search_params}", (data) ->
-      loadStatments(data, url)
-      $.scrollTo('.transcripts', 100, {offset: -40})
-
 
 
 

  # $(location).attr 'pathname'
  $.get url, (data) ->
    loadStatments(data, url)

  $("[data-session='#{selected_session}']").addClass("selected")
  $('.ui.sticky').sticky({context: '.transcriptions', offset: 70})


## EVENTS
search_params = $(location).attr('search')
global_session = null

buildSearchParams = ->
  only_as_presenter = $('#only_as_presenter').checkbox('is checked')
  params = []
  if session and session isnt 'None'
    params.push "session=#{global_session}"
  if only_as_presenter
    params.push "only_as_presenter=1"
  return "?#{params.join('&')}"
