Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#14274 closed defect (bug) (worksforme)

++ instead of -- on comment total count after edit

Reported by: nacin Owned by: scribu
Priority: lowest Milestone:
Component: Comments Version: 3.0
Severity: trivial Keywords:
Cc: Focuses:

Description

When moderating a comment that removes it from the screen, the total page count, i.e. 1-20 of 67, goes up (68) instead of down (66).

The issue is updateCount() in edit-comments.dev.js, which sets n to n + n1 before returning n. n - n1 is correct, but I think only for this instance of updateCount(), the rest need +. Still looking though.

Attachments (1)

14274.diff​ (792 bytes ) - added by frankperez87 16 years ago.

Download all attachments as: .zip

Change History (9)

#1 @frankperez87
16 years ago

  • Keywords has-patch dev-feedback added; needs-patch removed
  • Owner set to frankperez87
  • Status new → accepted
  • Version → 3.0

From what i saw when checking the comments, the integer after the word of does not update when deleting using the ajax calls. Adding a simple span class of total-type-count around the %s in a sprintf function on line 307 will solve the ajax updates.

#2 @ptahdunbar
16 years ago

  • Resolution → invalid
  • Status accepted → closed

#3 @scribu
16 years ago

Why was this closed as invalid?

#4 @nacin
16 years ago

  • Resolution invalid
  • Status closed → reopened

#5 @scribu
16 years ago

  • Keywords dev-feedback removed
  • Owner changed from frankperez87 to scribu
  • Status reopened → accepted

With the new pagination style, this is not a problem anymore.

However, we should clean up updateCount().

#6 @scribu
16 years ago

  • Keywords has-patch removed
  • Milestone 3.1 → Future Release

Punting for now.

Another idea would be to update the entire .subsubsub list when performing an action on the comment, so that we don't have to take care of all the extra logic.

#7 @PeteMall
16 years ago

  • Resolution → worksforme
  • Status accepted → closed

Seems to be fixed in trunk.

#8 @nacin
16 years ago

  • Milestone Future Release
Note: See TracTickets for help on using tickets.