From: mchurch Date: Thu, 28 Jun 2007 19:18:11 +0000 (+0000) Subject: Bug MDL-8520. Adding target= to the prev/next and logs buttons. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=89676f4deabd6bd53c4a6dede119ecb535d75249;p=moodle.git Bug MDL-8520. Adding target= to the prev/next and logs buttons. --- diff --git a/lib/weblib.php b/lib/weblib.php index b41a903f86..9ec6db42bf 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4763,7 +4763,8 @@ function navmenu($course, $cm=NULL, $targetwindow='self') { if ($selectmod and has_capability('moodle/site:viewreports', $context)) { $logstext = get_string('alllogs'); - $logslink = '
  • '."\n".'frametarget.' href="'. + $logslink = '
  • '."\n".'frametarget.'onclick="this.target=\''.$CFG->framename.'\';"'.' href="'. $CFG->wwwroot.'/course/report/log/index.php?chooselog=1&user=0&date=0&id='. $course->id.'&modid='.$selectmod->cm.'">'. ''.$logstext.''."\n".'
  • '; @@ -4771,14 +4772,16 @@ function navmenu($course, $cm=NULL, $targetwindow='self') { } if ($backmod) { $backtext= get_string('activityprev', 'access'); - $backmod = '
  • frametarget.'>
    '. + $backmod = '
  • '. ''. '
  • '; } if ($nextmod) { $nexttext= get_string('activitynext', 'access'); - $nextmod = '
  • frametarget.'>
    '. + $nextmod = '
  • '. ''. '
  • ';