[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Mon May 21 12:25:37 EDT 2012
raeburn Mon May 21 16:25:37 2012 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonmenu.pm
Log:
- For 2.11
- backport 1.372.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.369.2.3 loncom/interface/lonmenu.pm:1.369.2.4
--- loncom/interface/lonmenu.pm:1.369.2.3 Fri May 18 16:54:56 2012
+++ loncom/interface/lonmenu.pm Mon May 21 16:25:37 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.369.2.3 2012/05/18 16:54:56 raeburn Exp $
+# $Id: lonmenu.pm,v 1.369.2.4 2012/05/21 16:25:37 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -237,7 +237,8 @@
'▼</span></span>';
}
}
- $menu .= '<li><a href="'.$link.'" target="'.$target.'">'.$title.'</a>';
+ $menu .= '<li class="LC_hoverable">'.
+ '<a href="'.$link.'" target="'.$target.'">'.$title.'</a>';
if ($numsub) {
$menu .= '<ul>';
foreach my $item (@{$primary_submenu{$menuitem->[3]}}) {
@@ -1495,6 +1496,20 @@
annotator.document.close();
}
+(function (\$) {
+ \$(document).ready(function () {
+ \$.single=function(a){return function(b){a[0]=b;return a}}(\$([1]));
+ /*\@cc_on
+ if (!window.XMLHttpRequest) {
+ \$('.LC_hoverable').each(function () {
+ this.attachEvent('onmouseenter', function (evt) { \$.single(evt.srcElement).addClass('hover'); });
+ this.attachEvent('onmouseleave', function (evt) { \$.single(evt.srcElement).removeClass('hover'); });
+ });
+ }
+ \@*/
+ });
+}(jQuery));
+
function set_bookmark() {
go('');
clienttitle=document.title;
More information about the LON-CAPA-cvs
mailing list