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:
+1
-1
@@ -283,7 +283,7 @@
|
||||
$title = $course->shortname.': ' . format_string($data->name);
|
||||
|
||||
if ($PAGE->user_allowed_editing() && !empty($CFG->showblocksonmodpages)) {
|
||||
$buttons = '<table><tr><td><form '.$CFG->frametarget.' method="get" action="view.php"><div>'.
|
||||
$buttons = '<table><tr><td><form method="get" action="view.php"><div>'.
|
||||
'<input type="hidden" name="id" value="'.$cm->id.'" />'.
|
||||
'<input type="hidden" name="edit" value="'.($PAGE->user_is_editing()?'off':'on').'" />'.
|
||||
'<input type="submit" value="'.get_string($PAGE->user_is_editing()?'blockseditoff':'blocksediton').'" /></div></form></td></tr></table>';
|
||||
|
||||
Reference in New Issue
Block a user