Permalink
Browse files

MDL-33375 course: set anchor after changing sections

So scrolling isn't required
  • Loading branch information...
danpoltawski committed May 28, 2012
1 parent 4631e39 commit 54495fe41d6647db8d18e9d36c5c5b7f7239874b
Showing with 4 additions and 2 deletions.
  1. +3 −1 course/changenumsections.php
  2. +1 −1 course/format/renderer.php
@@ -53,5 +53,7 @@
$DB->update_record('course', $course);
}
$url = course_get_url($course);
$url->set_anchor('changenumsections');
// Redirect to where we were..
redirect(course_get_url($course));
redirect($url);
@@ -624,7 +624,7 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
echo $this->end_section_list();
echo html_writer::start_tag('div', array('class' => 'mdl-right'));
echo html_writer::start_tag('div', array('id' => 'changenumsections', 'class' => 'mdl-right'));
// Increase number of sections.
$straddsection = get_string('increasesections', 'moodle');

0 comments on commit 54495fe

Please sign in to comment.