<commit_before>.panel.panel-default.dashboard-panel
  .panel-heading
    Capital Projects
    .pull-right
      = select_tag(:capital_projects_fy, options_for_select(get_fiscal_years(Date.today), :selected => params[:capital_projects_fy] || current_planning_year_year ), :class => "form-control", :style => 'margin-top: -5px;')
  #capital-projects-widget.panel-body

:javascript

  $('#capital_projects_fy').change(function() {
    $("#spinner").show();
    update_capital_projects_widget();
    $("#spinner").hide();
  });

  function update_capital_projects_widget () {
    $.ajax({
      url: "/capital_projects/get_dashboard_summary",
      type: 'GET',
      dataType: 'json',
      data: {fy_year: $('#capital_projects_fy').val()},
      complete: function(response, status) {
        if (response.status == 200) {
          $('#capital-projects-widget').html(response.responseText);
        } else {
          $('#capital-projects-widget').html(response.statusText);
        }
      }
    });
  }<commit_msg>[TTPLAT-1197] Account for manual fy rollover in cpt widget dropdown.<commit_after>.panel.panel-default.dashboard-panel
  .panel-heading
    Capital Projects
    .pull-right
      = select_tag(:capital_projects_fy, options_for_select(get_fiscal_years(start_of_fiscal_year(current_fiscal_year_year)), :selected => params[:capital_projects_fy] || current_planning_year_year ), :class => "form-control", :style => 'margin-top: -5px;')
  #capital-projects-widget.panel-body

:javascript

  $('#capital_projects_fy').change(function() {
    $("#spinner").show();
    update_capital_projects_widget();
    $("#spinner").hide();
  });

  function update_capital_projects_widget () {
    $.ajax({
      url: "/capital_projects/get_dashboard_summary",
      type: 'GET',
      dataType: 'json',
      data: {fy_year: $('#capital_projects_fy').val()},
      complete: function(response, status) {
        if (response.status == 200) {
          $('#capital-projects-widget').html(response.responseText);
        } else {
          $('#capital-projects-widget').html(response.statusText);
        }
      }
    });
  }
{'fraction_non_alphanumeric': 0.1636020744931636, 'fraction_numerical': 0.005657708628005658, 'mean_word_length': 3.6637362637362636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1678469', 'n_tokens_mistral': 678, 'n_tokens_neox': 653, 'n_words': 93}