-
Notifications
You must be signed in to change notification settings - Fork 60
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
starred courses popover in navbar throws js error on every page. #759
Comments
…if Boost Union or Boost Union child is active, resolves #759.
…if Boost Union or Boost Union child is active, resolves #759.
Hi @davidscotson , many thanks for raising this issue. I can reproduce the JavaScript console error on Moodle 4.5 but also on older versions down to 4.1. I will investitate and hopefully fix it shortly. Regarding your additional comment that the starred courses feature is shown for other active themes as well, you are completely right. We have missed that detail in the initial implementation. Cheers, |
I think I found the reason for the JS console error as well: This is removed now in the updated PR. |
…if Boost Union or Boost Union child is active, resolves #759.
…if Boost Union or Boost Union child is active, resolves #759. (#762) * Bugfix: The starred courses popover in the navbar must only be shown if Boost Union or Boost Union child is active, resolves #759. * Bugfix: The starred courses popover showed a JavaScript error in the browser JS console, resolves #759
…if Boost Union or Boost Union child is active, resolves #759. (#762) * Bugfix: The starred courses popover in the navbar must only be shown if Boost Union or Boost Union child is active, resolves #759. * Bugfix: The starred courses popover showed a JavaScript error in the browser JS console, resolves #759
…if Boost Union or Boost Union child is active, resolves #759. (#762) * Bugfix: The starred courses popover in the navbar must only be shown if Boost Union or Boost Union child is active, resolves #759. * Bugfix: The starred courses popover showed a JavaScript error in the browser JS console, resolves #759
…if Boost Union or Boost Union child is active, resolves #759. (#762) * Bugfix: The starred courses popover in the navbar must only be shown if Boost Union or Boost Union child is active, resolves #759. * Bugfix: The starred courses popover showed a JavaScript error in the browser JS console, resolves #759
Describe the bug
On our 4.5 test site, enabling the "Show starred courses popover in the navbar" option in the settings causes a JS console error on every page.
To Reproduce
Steps to reproduce the behavior:
/admin/settings.php?section=theme_boost_union_feel
Uncaught TypeError: controller.registerEventListeners is not a function
Additional context
When investigating this I switched between themes using the
?theme=
functionality. The error persisted across other themes, and the star continued to be displayed in the navbar on Classic and vanilla Boost themes. After selecting a different theme in the settings to switch the theme entirely, the star in the navbar was still visible and active if enabled in Boost Union. I'm assuming that's not intended either.The text was updated successfully, but these errors were encountered: