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] Ignore object notification script loading on add view #128

Closed
pandafy opened this issue Sep 18, 2020 · 0 comments
Closed

[bug] Ignore object notification script loading on add view #128

pandafy opened this issue Sep 18, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pandafy
Copy link
Member

pandafy commented Sep 18, 2020

The JavaScript for ignore notification widget written in change_form.html is getting loaded on view form of the ModelAdmin. This is generating error on console, since the script is not able to find id of the object.

Expected behavior:
Make sure that JavaScript is loaded only on change_view.

Related to openwisp/openwisp-controller#282

pandafy added a commit that referenced this issue Sep 18, 2020
Ensured ignore notification widget JS written in
"admin/change_form.html" is only loads for change view of a
ModelAdmin

Closes #128
pandafy added a commit that referenced this issue Sep 18, 2020
Ensured ignore notification widget JS written in
"admin/change_form.html" only loads for change view of ModelAdmin

Closes #128
@pandafy pandafy self-assigned this Sep 18, 2020
@pandafy pandafy added the bug Something isn't working label Sep 18, 2020
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

No branches or pull requests

1 participant