Commits

Anonymous committed fb84555

1.1.2dev: Merged [12024] from 1.0-stable (fix for #11027).

  • Participants
  • Parent commits 19576b2

Comments (0)

Files changed (5)

trac/ticket/templates/admin_components.html

   <xi:include href="admin.html" />
   <head>
     <title>Components</title>
-    <script type="text/javascript">/*<![CDATA[*/
+    <script type="text/javascript" py:if="view == 'list'">/*<![CDATA[*/
       jQuery(document).ready(function($) {
         $("h2").addRowCount("table.listing");
       });

trac/ticket/templates/admin_enums.html

   <xi:include href="admin.html" />
   <head>
     <title>$label_plural</title>
-    <script type="text/javascript">/*<![CDATA[*/
+    <script type="text/javascript" py:if="view == 'list'">/*<![CDATA[*/
       jQuery(document).ready(function($) {
         $("h2").addRowCount("table.listing");
       });

trac/ticket/templates/admin_milestones.html

   <xi:include href="admin.html" />
   <head>
     <title>Milestones</title>
-    <script type="text/javascript">/*<![CDATA[*/
+    <script type="text/javascript">
       jQuery(document).ready(function($) {
         $("#duedate").datetimepicker();
         $("#completeddate").datetimepicker();
+        <py:if test="view == 'list'">
         $("h2").addRowCount("table.listing");
+        </py:if>
       });
-    /*]]>*/</script>
+    </script>
   </head>
 
   <body>

trac/ticket/templates/admin_versions.html

   <xi:include href="admin.html" />
   <head>
     <title>Versions</title>
-    <script type="text/javascript">/*<![CDATA[*/
+    <script type="text/javascript">
       jQuery(document).ready(function($) {
         $("#releaseddate").datetimepicker();
+        <py:if test="view == 'list'">
         $("h2").addRowCount("table.listing");
+        </py:if>
       });
-    /*]]>*/</script>
+    </script>
   </head>
 
   <body>

trac/versioncontrol/templates/admin_repositories.html

   <xi:include href="admin.html"/>
   <head>
     <title>Repositories</title>
-    <script type="text/javascript">/*<![CDATA[*/
+    <script type="text/javascript" py:if="view == 'list'">/*<![CDATA[*/
       jQuery(document).ready(function($) {
         $("h2").addRowCount("table.listing");
       });