Skip to content

Commit

Permalink
MDL-83339 course_format: Unify init params for course editor
Browse files Browse the repository at this point in the history
* Replace all selectors based on ID (getElementById) by querySelector
* Replaces #element-id by either .classname[data-uniqid=XXX] or
.classname[data-id=XX] if a unique Id was already there (the module
or section id for example)
  • Loading branch information
laurentdavid committed Jan 6, 2025
1 parent ab5692a commit 19bc0f7
Show file tree
Hide file tree
Showing 32 changed files with 98 additions and 44 deletions.
7 changes: 7 additions & 0 deletions .upgradenotes/MDL-83339-2024112908312892.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
issueNumber: MDL-83339
notes:
core_courseformat:
- message: >-
Deprecate the use of element ID selectors in favor of class and data-xx
selectors for Reactive component initialisation.
type: deprecated
4 changes: 2 additions & 2 deletions course/format/amd/build/local/content.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion course/format/amd/build/local/content.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions course/format/amd/build/local/content/bulkedittoggler.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 19bc0f7

Please sign in to comment.