[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
droeschl
droeschl@source.lon-capa.org
Mon, 05 Jul 2010 12:29:37 -0000
droeschl Mon Jul 5 12:29:37 2010 EDT
Modified files:
/loncom/interface londocs.pm
Log:
Open tabs in Course Editor on mouseover (still open on click).
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.428 loncom/interface/londocs.pm:1.429
--- loncom/interface/londocs.pm:1.428 Sun Jun 6 02:40:30 2010
+++ loncom/interface/londocs.pm Mon Jul 5 12:29:36 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.428 2010/06/06 02:40:30 raeburn Exp $
+# $Id: londocs.pm,v 1.429 2010/07/05 12:29:36 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3062,14 +3062,18 @@
$activeClass = 0;
}
}
- $r->print('<li '.$active.' onclick="javascript:showPage(this,\'mainCourseDocuments\',\'mainnav\',\'maincoursedoc\');"><a href="#"><b>'.$tabtitles{'main'}{$crstype}.'</b></a></li>');
+ $r->print('<li '.$active
+ . ' onmouseover="javascript:showPage(this,\'mainCourseDocuments\',\'mainnav\',\'maincoursedoc\');"'
+ . ' onclick="javascript:showPage(this,\'mainCourseDocuments\',\'mainnav\',\'maincoursedoc\');"><a href="#"><b>'.$tabtitles{'main'}{$crstype}.'</b></a></li>');
$active = '';
if (!$forcestandard || ($env{'form.folderpath'}=~/^supplemental/)) {
if($activeClass == 1){
$active = 'class="active"';
}
}
- $r->print('<li '.$active.' onclick="javascript:showPage(this,\'supplCourseDocuments\',\'mainnav\',\'maincoursedoc\');"><a href="#"><b>'.$tabtitles{'supplemental'}{$crstype}.'</b></a></li>');
+ $r->print('<li '.$active
+ .' onmouseover="javascript:showPage(this,\'supplCourseDocuments\',\'mainnav\',\'maincoursedoc\');"'
+ .' onclick="javascript:showPage(this,\'supplCourseDocuments\',\'mainnav\',\'maincoursedoc\');"><a href="#"><b>'.$tabtitles{'supplemental'}{$crstype}.'</b></a></li>');
$r->print('</ul>');
} else {
$r->print('<br />');
@@ -3532,7 +3536,9 @@
}elsif($activetab eq $name){
$active = 'class="active"';
}
- $form .= '<li '.$active.' onclick="javascript:showPage(this, \''.$name.$tid.'\', \'navigation'.$tid.'\',\'content'.$tid.'\');"><a href="javascript:;"><b>'.&mt(${$orderhash{$name}}[0]).'</b></a></li>';
+ $form .= '<li '.$active
+ .' onmouseover="javascript:showPage(this, \''.$name.$tid.'\', \'navigation'.$tid.'\',\'content'.$tid.'\');"'
+ .' onclick="javascript:showPage(this, \''.$name.$tid.'\', \'navigation'.$tid.'\',\'content'.$tid.'\');"><a href="javascript:;"><b>'.&mt(${$orderhash{$name}}[0]).'</b></a></li>';
} else {
$form .= '<li '.$active.'>'.${$orderhash{$name}}[1].'</li>';