Skip to content
  1. Mar 14, 2012
  2. Mar 13, 2012
  3. Mar 12, 2012
  4. Mar 09, 2012
  5. Mar 08, 2012
    • Rene Saarsoo's avatar
      Refactor checks for comment ownership. · 28728e91
      Rene Saarsoo authored
      Create a validator that checks if user is allowed to edit current
      comment, use it for such a check when updating, deleting and undoing
      deletes.
      28728e91
    • Rene Saarsoo's avatar
      Implement undo for deleting comments. · be5af754
      Rene Saarsoo authored
      Instead of showing a Yes/No prompt before deleting a comment, delete the
      comment right away and replace it with link to undo the delete action.
      
      This was easy to accomplish as we never delete the comments, but just
      mark them as deleted in database.
      be5af754
    • Rene Saarsoo's avatar
      Eliminate duplicate code for comments pager. · ba5fffa4
      Rene Saarsoo authored
      The same HTML was created in two places. Now it's in single spot at
      Docs.view.Comments#getPagerHtml.
      
      The HTML is now also more straight-forward, allowing us easily to
      display either link or plain text inside the pager container.
      ba5fffa4
    • Rene Saarsoo's avatar
      Display total count when no more comments to load. · 4525e349
      Rene Saarsoo authored
      It's helpful to know how many comments there are in total.
      Previously you didn't see the total count when there was < 100.
      4525e349
    • Rene Saarsoo's avatar
      Paging of recent comments. · 23fb66e6
      Rene Saarsoo authored
      This stopped working after switching to MongoDB, as the recent_comments
      query no more returned the total_rows and other parameters needed for
      creating the "Load more..." link.
      
      Also fixed the "Load more..." link to always show the nr of comments
      that are to be loaded.
      23fb66e6
Loading