mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix to break out of frames
This commit is contained in:
parent
4359e8f715
commit
3e50a13968
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ function popup_form ($common, $options, $formname, $selected="", $nothing="choos
|
||||||
$nothing = get_string("choose")."...";
|
$nothing = get_string("choose")."...";
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = "<FORM NAME=$formname>";
|
$output = "<FORM TARGET=_top NAME=$formname>";
|
||||||
$output .= "<SELECT NAME=popup onChange=\"window.location=document.$formname.popup.options[document.$formname.popup.selectedIndex].value\">\n";
|
$output .= "<SELECT NAME=popup onChange=\"top.location=document.$formname.popup.options[document.$formname.popup.selectedIndex].value\">\n";
|
||||||
|
|
||||||
if ($nothing != "") {
|
if ($nothing != "") {
|
||||||
$output .= " <OPTION VALUE=\"javascript:void(0)\">$nothing</OPTION>\n";
|
$output .= " <OPTION VALUE=\"javascript:void(0)\">$nothing</OPTION>\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue