[LON-CAPA-cvs] cvs: loncom /homework edit.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 26 Oct 2004 15:06:59 -0000
albertel Tue Oct 26 11:06:59 2004 EDT
Modified files:
/loncom/homework edit.pm
Log:
- xhtml cleanup
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.87 loncom/homework/edit.pm:1.88
--- loncom/homework/edit.pm:1.87 Thu Sep 30 17:47:21 2004
+++ loncom/homework/edit.pm Tue Oct 26 11:06:58 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# edit mode helpers
#
-# $Id: edit.pm,v 1.87 2004/09/30 21:47:21 albertel Exp $
+# $Id: edit.pm,v 1.88 2004/10/26 15:06:58 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -68,10 +68,9 @@
# "</tr><tr><td colspan=\"3\">\n";
my @help = Apache::lonxml::helpinfo($token);
if ($help[0]) {
- $result .= '<td align="right" valign="top">' .
- Apache::loncommon::help_open_topic(@help) .
- '</td>';
- } else { $result .= "<td> </td>"; }
+ $result .= '</td><td align="right" valign="top">' .
+ Apache::loncommon::help_open_topic(@help);
+ } else { $result .= "</td><td> "; }
$result .= &end_row().&start_spanning_row();
}
return $result;
@@ -191,7 +190,7 @@
$descrip."</option>\n";
}
foreach my $option (sort(keys(%options))) {$result.=$options{$option};}
- if ($result) { $result='<option selected="on"></option>'.$result; }
+ if ($result) { $result='<option selected="selected"></option>'.$result; }
}
return $result;
}
@@ -613,7 +612,7 @@
&html_element_name($name)."'";
foreach my $selected (split(/,/,$allselected)) {
if ( $selected eq $option ) {
- $result.=" checked='on' ";
+ $result.=" checked='checked' ";
last;
}
}
@@ -648,7 +647,7 @@
$value='value="'.$option.'"';
}
if ( $selected eq $option ) {
- $optionlist.="<option $value selected=\"on\">$text</option>\n";
+ $optionlist.="<option $value selected=\"selected\">$text</option>\n";
} else {
$optionlist.="<option $value >$text</option>\n";
}
@@ -677,14 +676,14 @@
$value='value="'.$option.'"';
}
if ( $selected eq $option ) {
- $optionlist.="<option $value selected=\"on\">$text</option>\n";
+ $optionlist.="<option $value selected=\"selected\">$text</option>\n";
$found=1;
} else {
$optionlist.="<option $value>$text</option>\n";
}
}
$optionlist.="<option value=\"TYPEDINVALUE\"".
- ((!$found)?' selected="on"':'').
+ ((!$found)?' selected="selected"':'').
">".&mt('Type-in value')."</option>\n";
#
my $element=&html_element_name($name);