mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 14:15:11 +02:00
MDL-15498: Completion system, help buttons aren't supposed to show when editing
This commit is contained in:
parent
05ec116569
commit
5c168a031e
@ -1503,7 +1503,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||
// In manual mode the icon is a toggle form.
|
||||
echo "
|
||||
<form class='togglecompletion' method='post' action='togglecompletion.php'><div>";
|
||||
if(!$shownhelp) {
|
||||
if(!$shownhelp && !$isediting) {
|
||||
helpbutton('completionicons',get_string('completionicons','completion'),'completion');
|
||||
$shownhelp=true;
|
||||
}
|
||||
@ -1515,7 +1515,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||
} else {
|
||||
// In auto mode, or when editing, the icon is just an image
|
||||
echo "<span class='autocompletion'>";
|
||||
if(!$shownhelp) {
|
||||
if(!$shownhelp && !$isediting) {
|
||||
helpbutton('completionicons',get_string('completionicons','completion'),'completion');
|
||||
$shownhelp=true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user