Commits

Peter Suter committed 35967c9

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

Comments (0)

Files changed (1)

trac/ticket/templates/ticket.html

           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