1. Peter Suter
  2. Trac-ticket-3360-sort-order

Commits

Peter Suter  committed 35967c9

Make sure comments are shown oldest first on preview (as updated changelog is in oldest first order.)

  • Participants
  • Parent commits e65b455
  • Branches ticket-3360

Comments (0)

Files changed (1)

File trac/ticket/templates/ticket.html

View file
           var items = $(reply);
           // Update ticket box
           $("#ticket").replaceWith(items.filter('#ticket'));
-          // Unthread and update changelog
-          if ($('#trac-comments-threaded').checked())
+          // Unthread, unrevert and update changelog
+          if (!$('#trac-comments-oldest').checked())
             $('#trac-comments-oldest').click().change();
           $("#changelog").replaceWith(items.filter("#changelog"));
           // Show warning