[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 01 Mar 2005 03:23:16 -0000


albertel		Mon Feb 28 22:23:16 2005 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - only output the readonly attibute when it's yes
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.157 loncom/homework/inputtags.pm:1.158
--- loncom/homework/inputtags.pm:1.157	Fri Feb 18 00:41:31 2005
+++ loncom/homework/inputtags.pm	Mon Feb 28 22:23:16 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.157 2005/02/18 05:41:31 albertel Exp $
+# $Id: inputtags.pm,v 1.158 2005/03/01 03:23:16 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -226,6 +226,8 @@
 							$safeeval);
 		if (lc($readonly) eq 'yes') {
 		    $readonly=' readonly="readonly" ';
+		} else {
+		    $readonly='';
 		}
 		$result.= '<input type="text" '.$readonly.' name="HWVAL_'.$id.'" value="'.
 		    $oldresponse.'" size="'.$size.'" maxlength="'.$maxlength.'" />';