Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

AJAX mod editing

From MoodleDocs


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.


Scope

Now when we add or update activity/resource to a course, settings of open in new page. And we need to reload page to see course state. We need to change that. Activity/resource settings must be opened in dialog without page redirection, and changes must be seen on course page without reload.

Project

  1. Create new dialog after "choose new activity or resource" dialog.
  2. Load activity/resource edit form in new dialog by AJAX.
  3. Validate form after submit(use AJAX and js for form).
  4. Save changes(use AJAX).
  5. Update course content(by AJAX).