Commits

Peter Suter committed bf0e7fd

0.13dev: Drop `threaded_comments.js` from ''New ticket'' page, as it's not needed there but causes an error.

Related to #10625.

Comments (0)

Files changed (1)

trac/ticket/templates/ticket.html

       <py:when test="ticket.exists">#${ticket.id} (${ticket.summary})</py:when>
       <py:otherwise>New Ticket</py:otherwise>
     </title>
-    <script type="text/javascript" src="${chrome.htdocs_location}js/threaded_comments.js"></script>
+    <script py:if="ticket.exists" type="text/javascript" src="${chrome.htdocs_location}js/threaded_comments.js"></script>
     <script type="text/javascript" py:choose="">
       jQuery(document).ready(function($) {
         $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section"));