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

feat: course id fields restriction & js uncaught element bug fixed #46

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

julianramirez2
Copy link
Contributor

Description

Added a JavaScript file that restricts the course ID fields in the enrollment form and product form for Open edX courses, to make the "course-v1:" string at the beginning mandatory. Also, while running the JavaScript code, there were some error messages appearing in the console because the code was trying to get an element that was not present on the page. To fix this issue, an if structure was added to the code to verify if the element is present on the page before using it.

Testing instructions

Go to the enrollment form and the product page and try to modify the course ID.

Checklist for Merge

  • Tested in a remote environment
  • Updated documentation
  • Rebased master/main
  • Squashed commits

@julianramirez2
Copy link
Contributor Author

@MaferMazu @andres-arango-aptitude can you check this, please?

@julianramirez2 julianramirez2 merged commit 9551c99 into main Oct 10, 2023
3 checks passed
@felipemontoya felipemontoya deleted the course-id-restriction branch March 21, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants