Can you look at this urgently and help complete the AJAX implementation?
course/rest.php - the old commands.php
lib/ajax/ajaxcourse.js - the old JS from the topics format
lib/ajax/section_classes.js - renamed back from php recently
To try AJAX in the weekly course format:
1) Set the course format to "weekly" in the settings.
2) Turn on AJAX in the user profile preferences
3) Admin > Server > Debugging .... set the level to DEBUG_DEVELOPER
4) Go to the course and "Turn editing on".
It nearly works but I think it's not detecting sections properly, because
- moving activities (resources) will always end up in the top section, because beforeId is always 0.
- moving blocks will send a bad block id and lose them