MDL-20204 the ultimate fix for our frames (theyare not accessbile, but anyway); instead of adding the target to each element when creating html we use yui to set the target from page footer via JS - this fixes the links and forms in all elements in pages with frametop layout
This commit is contained in:
@@ -432,13 +432,8 @@ class navigation_node {
|
||||
if ($this->hidden) {
|
||||
$link->add_class('dimmed');
|
||||
}
|
||||
|
||||
if (!empty($CFG->framename) && ($PAGE->pagelayout=='frametop' || $CFG->framename!='_top')) {
|
||||
$breakoutaction = new breakout_of_frame_action();
|
||||
$link->add_action($breakoutaction);
|
||||
}
|
||||
|
||||
$content = $OUTPUT->link($link);
|
||||
|
||||
} else {
|
||||
$span = new html_span();
|
||||
$span->contents = $content;
|
||||
@@ -450,6 +445,7 @@ class navigation_node {
|
||||
}
|
||||
$content = $OUTPUT->span($span);
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user