         ui.jqXHR.error (xhr, status, error) ->
           # don't show error message if it's because of user aborting ajax request
           if status != 'abort'
-            $('#error-msg').html('Sorry, but the tab could not load. Please try again soon.').show();
+            $('#error-msg').html('Sorry, but the tab could not load. Please try again soon.').show()
 
       load: (event, ui) ->
         self.fix_bad_dates(ui.panel)


  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'))

      active: window.activeTab
      beforeActivate: (event, ui) ->
        # if there was an old error message, fade it out now
        $('#error-msg').fadeOut()

        self.update_href ui.newTab
        true
