Details
Description
Moodle jumps back to the top of the page after adding a resource/activity. This can be annoying when adding multiple new items to the bottom of the page. This simple change will make the page scroll back to the same section to which the new item was added.
File: course/modedit.php
Line: 415
redirect("$CFG->wwwroot/course/view.php?id=$course->id");
becomes
redirect("$CFG->wwwroot/course/view.php?id=$course->id#section-$section");
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions