js: Use ESM format for form.js#701
Conversation
|
This contains some nice clean up work and includes the new Testing needs to validate this continues to work on older versions and plays nicely with our breakout room feature request that is also being tested. |
|
Hey @jrchamp , can you kindly eloborate " more-restricted list to a less-restricted list" in your description of the bugs. When creating a recurring zoom meeting, i do not see any options for the restrictions list. |
Specifically, when Monthly is chosen, the repeat interval only allows options 1, 2 and 3. After choosing Monthly, choosing Weekly should show all options between 1 and 12. The bug is that options 4 through 12 stay hidden, which this PR fixes. The underlying reason for the bug is that the code that modifies which options are visible is written in a way where the Monthly and Weekly choices only hide options and never show them. As the options available for Monthly are a subset of the options for Weekly, this problem is only apparent when switching from Monthly to Weekly. The term "restrictions" is causing unnecessary confusion in this context: I am only referring to the range of options that are allowed for the repetition intervals. |
|
After purging the cache, retested for Daily, weekly , monthly and no fixed time. Verified that in all meetings, the upcoming meeting is displayed. As a future enhancement, it would be nice to have all the recurring sessions also displayed . |
Switching to ESM is primarily:
defineline to multipleimportlines.returned, need to beexported.varbecomesconstunless the value is modifiable, in which case it becomesletfunction()becomes() =>; similarlyfunction(arg1)becomes(arg1) =>this, either by creating a real class or using parameters from the callable.Other compatibility changes that I made:
click(toon('click',.catch()instead offail()so we are prepared for real Promises.get_string/get_stringstogetString/getStringsso we continue to support Moodle <4.3.getString/getStrings.Bugs that testing identified and that are fixed in this PR:
#link2.Fixes #571