Awaiting Moderation (#): # is not always updated correctly in JS
|Reported by:||mdawaffe||Owned by:|
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.