More tweaks to fix on/off button for admins o ncourse listings

This commit is contained in:
moodler 2003-08-22 12:26:36 +00:00
parent c432fd3213
commit 9b16d1eada
2 changed files with 4 additions and 4 deletions

View file

@ -1265,8 +1265,8 @@ function update_category_button($categoryid) {
} else {
$string = get_string("turneditingon");
$edit = "on";
}
return "<form target=_parent method=get action=\"$CFG->wwwroot/course/category.php\">".
}
return "<form method=get action=\"$CFG->wwwroot/course/category.php\">".
"<input type=hidden name=id value=\"$categoryid\">".
"<input type=hidden name=edit value=\"$edit\">".
"<input type=submit value=\"$string\"></form>";