 
   init_pagination: ->
     self = this
-    $(document).on 'click', '.pagination a', ->
-      self.current_tab().find('a').attr('href', $(this).attr('href'))
+    $(document).on 'click', '.pagination a', (evt) ->
+      evt.preventDefault()
+      $(self.current_tab()).find('a').attr('href', $(this).attr('href'))
       self.refresh_tab()
-      false
+
+  update_export_urls: ->
+    url = @tab_url(@current_tab())
+    $('#export').attr('href', url + '&export_id=report&format=csv');
+    $('#export-all').attr('href', url + '&export_id=report_data&format=csv');
 
 $ ->
   window.report = new TabbableReports($('#refresh-form'))


      load: (event, ui) ->
        self.fix_bad_dates(ui.panel)
    })

  build_query_string: ->
    "?" + @$element.serialize()

  init_form: ->
    $('#status_filter').chosen() if $('#status_filter').length

      self.update_parameters()

  update_href: (tab) ->
    tab.find('a').attr('href', @tab_url(tab))

  # Make sure to update the date params in case they were empty or invalid
  fix_bad_dates: (panel) ->
