[LON-CAPA-cvs] cvs: loncom /interface lonhelper.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 12 Jul 2005 16:11:23 -0000
albertel Tue Jul 12 12:11:23 2005 EDT
Modified files:
/loncom/interface lonhelper.pm
Log:
<script> fixups
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.111 loncom/interface/lonhelper.pm:1.112
--- loncom/interface/lonhelper.pm:1.111 Tue Jul 12 12:03:12 2005
+++ loncom/interface/lonhelper.pm Tue Jul 12 12:11:19 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# .helper XML handler to implement the LON-CAPA helper
#
-# $Id: lonhelper.pm,v 1.111 2005/07/12 16:03:12 albertel Exp $
+# $Id: lonhelper.pm,v 1.112 2005/07/12 16:11:19 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1188,7 +1188,8 @@
if ($self->{'multichoice'}) {
$result .= <<SCRIPT;
-<script>
+<script type="text/javascript">
+// <!--
function checkall(value, checkName) {
for (i=0; i<document.forms.helpform.elements.length; i++) {
ele = document.forms.helpform.elements[i];
@@ -1197,6 +1198,7 @@
}
}
}
+// -->
</script>
SCRIPT
}
@@ -1436,7 +1438,7 @@
$choiceLabel = eval($choiceLabel);
$choiceLabel = &$choiceLabel($helper, $self);
}
- $result .= ">" . &mtn($choiceLabel) . "\n";
+ $result .= ">" . &mtn($choiceLabel) . "</option>\n";
}
$result .= "</select>\n";
@@ -1930,7 +1932,8 @@
if ($self->{'multichoice'}) {
$result = <<SCRIPT;
-<script>
+<script type="text/javascript">
+// <!--
function checkall(value, checkName) {
for (i=0; i<document.forms.helpform.elements.length; i++) {
ele = document.forms.helpform.elements[i];
@@ -1939,6 +1942,7 @@
}
}
}
+// -->
</script>
SCRIPT
my %lt=&Apache::lonlocal::texthash(
@@ -2057,6 +2061,7 @@
};
$result.=(<<RADIO);
<script type="text/javascript">
+// <!--
function updateRadio(form,name,value) {
var radiobutton=form[name];
for (var i=0; i<radiobutton.length; i++) {
@@ -2072,6 +2077,7 @@
var which=select.selectedIndex;
hidden.value=select.options[which].value;
}
+// -->
</script>
<input type="hidden" name="${var}_part.forminput" />
@@ -2203,7 +2209,8 @@
if ($self->{'multichoice'}) {
$result = <<SCRIPT;
-<script>
+<script type="text/javascript">
+// <!--
function checkall(value, checkName) {
for (i=0; i<document.forms.helpform.elements.length; i++) {
ele = document.forms.helpform.elements[i];
@@ -2236,6 +2243,7 @@
}
}
}
+// -->
</script>
SCRIPT
@@ -2547,7 +2555,8 @@
if ($self->{'multichoice'}) {
$result = <<SCRIPT;
-<script>
+<script type="text/javascript">
+// <!--
function checkall(value, checkName) {
for (i=0; i<document.forms.helpform.elements.length; i++) {
ele = document.forms.helpform.elements[i];
@@ -2565,6 +2574,7 @@
}
}
}
+// -->
</script>
SCRIPT
my %lt=&Apache::lonlocal::texthash(