[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonparmset.pm
www
www@source.lon-capa.org
Sat, 15 Jan 2011 16:21:42 -0000
www Sat Jan 15 16:21:42 2011 EDT
Modified files:
/loncom/interface loncommon.pm lonparmset.pm
Log:
For a course with lots of folders and chapters, the select table was rather unmanageable
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.995 loncom/interface/loncommon.pm:1.996
--- loncom/interface/loncommon.pm:1.995 Mon Jan 10 21:12:54 2011
+++ loncom/interface/loncommon.pm Sat Jan 15 16:21:41 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.995 2011/01/10 21:12:54 raeburn Exp $
+# $Id: loncommon.pm,v 1.996 2011/01/15 16:21:41 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6883,6 +6883,15 @@
}
}
+
+sub start_scrollbox {
+ return '<table style="width: 600px;"><tr><td style="width: 500px;"><div style="overflow:auto; width:500px; height: 200px;">';
+}
+
+sub end_scrollbox {
+ return '</td></tr></table>';
+}
+
sub simple_error_page {
my ($r,$title,$msg) = @_;
my $page =
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.508 loncom/interface/lonparmset.pm:1.509
--- loncom/interface/lonparmset.pm:1.508 Sat Jan 15 15:14:47 2011
+++ loncom/interface/lonparmset.pm Sat Jan 15 16:21:42 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.508 2011/01/15 15:14:47 www Exp $
+# $Id: lonparmset.pm,v 1.509 2011/01/15 16:21:42 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1780,7 +1780,7 @@
.'</div>'
);
-
+ $r->print(&Apache::loncommon::start_scrollbox());
$r->print(&Apache::loncommon::start_data_table());
# Display row: "All Maps or Folders"
@@ -1861,6 +1861,7 @@
}
$r->print(&Apache::loncommon::end_data_table());
+ $r->print(&Apache::loncommon::end_scrollbox());
}
}