mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
[Changed] Now when a teacher edits a page with the "Edit page contents" button and then saves or cancels, s/he gets redirected back to the lesson navigation. This will help to streamline the editing
[Fixed] The cancel button on the edit page now works.
This commit is contained in:
parent
42f9b64b80
commit
aeb8148a57
3 changed files with 26 additions and 6 deletions
|
@ -90,6 +90,7 @@
|
|||
'<form target="'. $CFG->framename .'" method="get" action="'. $CFG->wwwroot .'/mod/lesson/lesson.php">'.
|
||||
'<input type="hidden" name="id" value="'. $cm->id .'" />'.
|
||||
'<input type="hidden" name="action" value="editpage" />'.
|
||||
'<input type="hidden" name="redirect" value="navigation" />'.
|
||||
'<input type="hidden" name="pageid" value="'. $currentpageid .'" />'.
|
||||
'<input type="submit" value="'. get_string('editpagecontent', 'lesson') .'" /></form>';
|
||||
}
|
||||
|
@ -879,7 +880,7 @@
|
|||
$fullbuttonhtml .= "</div>\n";
|
||||
|
||||
if ($lesson->slideshow) {
|
||||
echo '<div class="branchslidetop">' . $fullbuttonhtml . '</div>';
|
||||
//echo '<div class="branchslidetop">' . $fullbuttonhtml . '</div>';
|
||||
$options = new stdClass;
|
||||
$options->noclean = true;
|
||||
echo '<div class="contents">'.format_text($page->contents, FORMAT_MOODLE, $options).'</div>';;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue