Commits

Anonymous committed e284f35

Made included JS file kinda more atomic.

Wrapped it inside <script> tags to make it more easy to include it.

Comments (0)

Files changed (4)

transifex/templates/languages/language_release.html

     form.submit_form { display: none; }
     form.submit_form fieldset { border: 2px dotted #ddd; }
   </style>
-
-  <script type="text/javascript">
-  $(function(){
-    {% include "translations/stats_table_filter_header.html" %}
-  });
-  </script>
+  {% include "translations/stats_table_filter_header.html" %}
 {% endblock %}
 
 {% block body_class %}{{ block.super }} language_release{% endblock %}

transifex/templates/projects/component_detail.html

         tooltip('#note', submission_note);
 
     {% endif %}
-
-    {% include "translations/stats_table_filter_header.html" %}
-
   });
-
-
   </script>
+  {% include "translations/stats_table_filter_header.html" %}
   <link media="screen" href="{{ MEDIA_URL }}css/tablesorter.css" type="text/css" rel="stylesheet" />
   <style type="text/css">
     form.submit_form { display: none; }

transifex/templates/translations/stats_table_filter_header.html

+<script type="text/javascript">
+  $(function(){
     // Actions to show/hide completed statistics on table
     $("input[name='show_complete']").change(function(){
           toggle_entries('complete');
-    })
+    })
+  });
+</script>

transifex/templates/txcollections/release_detail.html

   <link rel="alternate" type="application/rss+xml" title="RSS" href="{% url release_languages_feed collection_slug=release.collection.slug release_slug=release.slug %}" />
   <script type="text/javascript" src="{{ MEDIA_URL }}js/tablesorted.js"></script>  
   <link media="screen" href="{{ MEDIA_URL }}css/tablesorter.css" type="text/css" rel="stylesheet" />
-
-  <script type="text/javascript">
-  $(function(){
-    {% include "translations/stats_table_filter_header.html" %}
-  });
-  </script>
+  {% include "translations/stats_table_filter_header.html" %}
 {% endblock %}
 
 {% block breadcrumb %}{{ block.super }} &raquo; {{ release.name }}{% endblock %}