#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)
Change History (9)
#1
@
16 years ago
- Keywords has-patch dev-feedback added; needs-patch removed
- Owner set to
- Status new → accepted
- Version → 3.0
#5
@
16 years ago
- Keywords dev-feedback removed
- Owner changed from to
- Status reopened → accepted
With the new pagination style, this is not a problem anymore.
However, we should clean up updateCount().
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.