Ticket #5315 (closed defect (bug): fixed)

Opened 1 year ago

Last modified 1 year ago

Awaiting Moderation (#): # is not always updated correctly in JS

Reported by: mdawaffe Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version: 2.3.1
Severity: normal Keywords:
Cc:

Description

The number in the Comments -> Awaiting Moderation subtab gets updated via JS when comments are approved, unapproved or deleted.

There are a couple of bugs, though.

When the number is updated to 0, it is removed rather than set to "0" (a jQuery oddity).

When a comment is deleted from the Comments -> Amaiting Moderation tab (rather than from the Comments -> Comments tab), the number is not changed.

Attached fixes both.

Attachments

5315.diff (1.8 kB) - added by mdawaffe on 11/04/07 01:28:35.

Change History

11/04/07 01:28:35 changed by mdawaffe

  • attachment 5315.diff added.

11/04/07 06:23:03 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6312]) Update awaiting moderation count when comments are moderated through AJAX. Props mdawaffe. fixes #5315