Moodle

Scroll back to the appropraite section after adding a resource/activity

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Course, Resource
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

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

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: