[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
droeschl
droeschl@source.lon-capa.org
Fri, 17 Jul 2009 15:27:17 -0000
droeschl Fri Jul 17 15:27:17 2009 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
onsubmit is no valid attribute for <input> elements.
See http://www.w3.org/TR/html401/interact/scripts.html#adef-onsubmit
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.259 loncom/homework/inputtags.pm:1.260
--- loncom/homework/inputtags.pm:1.259 Wed Jul 8 10:53:08 2009
+++ loncom/homework/inputtags.pm Fri Jul 17 15:27:17 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.259 2009/07/08 10:53:08 onken Exp $
+# $Id: inputtags.pm,v 1.260 2009/07/17 15:27:17 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1289,11 +1289,9 @@
if ( $showbutton ) {
if ($target ne 'tex') {
$button =
- '<input
- onmouseup="javascript:setSubmittedPart(\''.$id.'\')"
- onsubmit="javascript:setSubmittedPart(\''.$id.'\')"
- type="submit" name="submit_'.$id.'"
- value="'.&mt('Submit Answer').'" />';
+ '<input onmouseup="javascript:setSubmittedPart(\''.$id.'\')"
+ type="submit" name="submit_'.$id.'"
+ value="'.&mt('Submit Answer').'" />';
}
}