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:
Petr Skoda
2010-02-11 13:27:02 +00:00
parent ae6b463442
commit 4aea3cc7cd
24 changed files with 59 additions and 100 deletions
+2 -6
View File
@@ -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;
}