-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update item count on deletion #4518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 thing to try; it looks like the code for this is here, but is updating the wrong element!
@@ -112,7 +112,7 @@ <h1>$list.name</h1> | |||
remove_seed(list_key, seed, function() { | |||
\$(seed_id).remove(); | |||
// update seed count | |||
\$("#seed-count").html(render_seed_count(get_seed_count())); | |||
\$("#list-items-count").html(render_seed_count(get_seed_count())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm; tested that it makes the request on staging. Staging has caching issues, so the number didn't update :P But that will be fixed when it gets to production.
Closes #4517
Updates item count whenever an item is deleted by a patron.
Technical
Testing
Screenshot
Stakeholders