Skip to content
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

BUG: JavaScript error when using moderator tools in topics view #699

Closed
johnhenley opened this issue Mar 7, 2024 · 1 comment · Fixed by #700
Closed

BUG: JavaScript error when using moderator tools in topics view #699

johnhenley opened this issue Mar 7, 2024 · 1 comment · Fixed by #700
Assignees
Labels
bug Something isn't working
Milestone

Comments

@johnhenley
Copy link
Collaborator

Describe the bug

Using a moderator action from the topics view displays an error message. The action completes successfully; the error is on reloading the topics view.

Software Versions

  • DNN: 09.12.00
  • Module: 08.00.01

To Reproduce

Steps to reproduce the behavior:

  1. Add a topic
  2. display the topic as a moderator
  3. Click on an action such as delete or move
  4. See error

image

@johnhenley johnhenley added the bug Something isn't working label Mar 7, 2024
@johnhenley johnhenley added this to the 08.01.00 milestone Mar 7, 2024
@johnhenley johnhenley self-assigned this Mar 7, 2024
@johnhenley
Copy link
Collaborator Author

There is JavaScript that is looking for a div with id = 'afgrid' to add a "loading" spinner/element.
image

That div was removed from TopicsView.ascx in v8 in the Community-Default theme.

Several issues need to be corrected:

  1. Never rely on a specific ID to be present in an editable template
  2. More defensive JavaScript -- don't fail when an element is missing and it's not a critical piece of the UI (it's a spinner :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant