[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 22 Jun 2006 15:53:48 -0000
albertel Thu Jun 22 11:53:48 2006 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
- xhtmlize
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.134 loncom/interface/lonhtmlcommon.pm:1.135
--- loncom/interface/lonhtmlcommon.pm:1.134 Fri Jun 16 18:37:10 2006
+++ loncom/interface/lonhtmlcommon.pm Thu Jun 22 11:53:48 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.134 2006/06/16 22:37:10 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.135 2006/06/22 15:53:48 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -330,7 +330,7 @@
}
my $result = "\n<!-- $dname date setting form -->\n";
$result .= <<ENDJS;
-<script language="Javascript">
+<script type="text/javascript">
function $dname\_checkday() {
var day = document.$formname.$dname\_day.value;
var month = document.$formname.$dname\_month.value;
@@ -393,7 +393,7 @@
}
</script>
ENDJS
- $result .= ' <nobr>';
+ $result .= ' <span style="white-space: nowrap;">';
my $monthselector = qq{<select name="$dname\_month" $special $state onchange="javascript:$dname\_checkday()" >};
# Month
my @Months = qw/January February March April May June
@@ -455,7 +455,7 @@
$result .= &mt('[_7]Select Date[_8]',$cal_link,'</a>');
}
}
- $result .= "</nobr>\n<!-- end $dname date setting form -->\n";
+ $result .= "</span>\n<!-- end $dname date setting form -->\n";
return $result;
}