[LON-CAPA-cvs] cvs: rat / lonwrapper.pm loncom/interface loncommon.pm lonquickgrades.pm
raeburn
raeburn@source.lon-capa.org
Mon, 03 Jan 2011 14:19:42 -0000
raeburn Mon Jan 3 14:19:42 2011 EDT
Modified files:
/loncom/interface loncommon.pm lonquickgrades.pm
/rat lonwrapper.pm
Log:
- xhtml
- Although LC_head_subbox was originally intended to occur only once
on a page, it may occur multiple times (e.g., CSTR).
- Converting from id to class to allow multiple instances.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.992 loncom/interface/loncommon.pm:1.993
--- loncom/interface/loncommon.pm:1.992 Thu Dec 30 21:49:15 2010
+++ loncom/interface/loncommon.pm Mon Jan 3 14:19:38 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.992 2010/12/30 21:49:15 raeburn Exp $
+# $Id: loncommon.pm,v 1.993 2011/01/03 14:19:38 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4486,7 +4486,7 @@
sub head_subbox {
my ($content)=@_;
my $output =
- '<div id="LC_head_subbox">'
+ '<div class="LC_head_subbox">'
.$content
.'</div>'
}
@@ -5091,7 +5091,7 @@
padding: 0;
}
-#LC_head_subbox {
+.LC_head_subbox {
clear:both;
background: #F8F8F8; /* $sidebg; */
border: 1px solid $sidebg;
Index: loncom/interface/lonquickgrades.pm
diff -u loncom/interface/lonquickgrades.pm:1.59 loncom/interface/lonquickgrades.pm:1.60
--- loncom/interface/lonquickgrades.pm:1.59 Sat Dec 4 15:02:31 2010
+++ loncom/interface/lonquickgrades.pm Mon Jan 3 14:19:39 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Quick Student Grades Display
#
-# $Id: lonquickgrades.pm,v 1.59 2010/12/04 15:02:31 www Exp $
+# $Id: lonquickgrades.pm,v 1.60 2011/01/03 14:19:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -121,7 +121,7 @@
my $allowed_to_edit = &Apache::lonnet::allowed('mgr',$env{'request.course.id'});
if ($allowed_to_view) {
- $r->print('<div id="LC_head_subbox">');
+ $r->print('<div class="LC_head_subbox">');
if ($notshowTotals) { $r->print (' '.&mt('Students do not see total points.').' '); }
if ($notshowSPRSlink){ $r->print (' '.&mt('Students do not see link to spreadsheet.').' '); }
if ($showPoints) { $r->print (' '.&mt('Students will see points based on problem weights.').' '); }
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.39 rat/lonwrapper.pm:1.40
--- rat/lonwrapper.pm:1.39 Thu Mar 4 19:35:53 2010
+++ rat/lonwrapper.pm Mon Jan 3 14:19:41 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Wrapper for external and binary files as standalone resources
#
-# $Id: lonwrapper.pm,v 1.39 2010/03/04 19:35:53 droeschl Exp $
+# $Id: lonwrapper.pm,v 1.40 2011/01/03 14:19:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -45,7 +45,7 @@
my $script = Apache::lonhtmlcommon::scripttag(<<SCRIPT );
\$(document).ready( function() {
\$(window).unbind('resize').resize(function(){
- var header = \$('#LC_head_subbox')[0] ? \$('#LC_head_subbox')
+ var header = \$('.LC_head_subbox')[0] ? \$('.LC_head_subbox')
: \$('#LC_breadcrumbs');
var pos = header.height() + header.position().top + 5;
\$('.LC_iframecontainer').css('top', pos);