<commit_before>{% extends "fa_admin/base.html" %}
{% block page-subtitle %}{{block.super}} {% if files.number != 1 %}: Modified files (page {{ files.number }}){% endif %}{% endblock %}

{% block content-title %}Manage Finding Aids{% endblock %}

{% block style %}
  {{ block.super }}
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/style/redmond/jquery-ui-1.10.3.custom.min.css" />
   {% include 'taskresult/snippets/task_styles.html' %}
{% endblock %}

{% block scripts %}
    {{ block.super }}
    <script type="text/javascript" src="{{ STATIC_URL }}/js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script>
  $(function() {
    var tabs = $("#tabs").tabs();
    var csrftoken = $('input[name=csrfmiddlewaretoken').val();
    tabs.tabs({
      beforeLoad: function( event, ui ) {
        ui.panel.html('Loading...');
        ui.jqXHR.error(function() {
          ui.panel.html('There was an error loading this content.');
        });
      }
    });
    // make the tabs sortable
    tabs.find(".ui-tabs-nav").sortable({
      axis: "x",
      stop: function() {
        tabs.tabs( "refresh" );
        var ids = tabs.find('li').map(function() { return this.id }).get();

        $.ajax({
          type: 'POST',
          url: "{% url 'fa-admin:archive-order' %}",
          data: {'ids': ids.join()},
          headers: {'X-CSRFTOKEN': csrftoken}
        });
      }
    });

  });
<commit_msg>fix javascript typo that was breaking sortable tabs [Fixes #58246118]<commit_after>{% extends "fa_admin/base.html" %}
{% block page-subtitle %}{{block.super}} {% if files.number != 1 %}: Modified files (page {{ files.number }}){% endif %}{% endblock %}

{% block content-title %}Manage Finding Aids{% endblock %}

{% block style %}
  {{ block.super }}
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/style/redmond/jquery-ui-1.10.3.custom.min.css" />
   {% include 'taskresult/snippets/task_styles.html' %}
{% endblock %}

{% block scripts %}
    {{ block.super }}
    <script type="text/javascript" src="{{ STATIC_URL }}/js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script>
  $(function() {
    var tabs = $("#tabs").tabs();
    var csrftoken = $('input[name=csrfmiddlewaretoken]').val();
    tabs.tabs({
      beforeLoad: function( event, ui ) {
        ui.panel.html('Loading...');
        ui.jqXHR.error(function() {
          ui.panel.html('There was an error loading this content.');
        });
      }
    });
    // make the tabs sortable
    tabs.find(".ui-tabs-nav").sortable({
      axis: "x",
      stop: function() {
        tabs.tabs( "refresh" );
        var ids = tabs.find('li').map(function() { return this.id }).get();

        $.ajax({
          type: 'POST',
          url: "{% url 'fa-admin:archive-order' %}",
          data: {'ids': ids.join()},
          headers: {'X-CSRFTOKEN': csrftoken}
        });
      }
    });

  });

{'fraction_non_alphanumeric': 0.21038876184253513, 'fraction_numerical': 0.010454099967330937, 'mean_word_length': 2.689156626506024, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '973022', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1005, 'n_words': 203}