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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 21 Oct 2003 20:58:29 -0000


albertel		Tue Oct 21 16:58:29 2003 EDT

  Modified files:              
    /loncom/homework	chemresponse.pm 
  Log:
  - remove 'height' parameter, auto calculated it instead
  
  
Index: loncom/homework/chemresponse.pm
diff -u loncom/homework/chemresponse.pm:1.21 loncom/homework/chemresponse.pm:1.22
--- loncom/homework/chemresponse.pm:1.21	Tue Oct 21 16:49:06 2003
+++ loncom/homework/chemresponse.pm	Tue Oct 21 16:58:29 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # chemical equation style response
 #
-# $Id: chemresponse.pm,v 1.21 2003/10/21 20:49:06 albertel Exp $
+# $Id: chemresponse.pm,v 1.22 2003/10/21 20:58:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -235,9 +235,8 @@
 	if ($options =~ /border/) { $result.= '} '; }
     } elsif ($target eq 'edit') {
 	$result .=&Apache::edit::tag_start($target,$token);
-	$result .=&Apache::edit::text_arg('Width:','width',$token,5);
-	$result .=&Apache::edit::text_arg('Height:','height',$token,5);
-	$result .=&Apache::edit::text_arg('TeXwidth:','texwidth',$token,5);
+	$result .=&Apache::edit::text_arg('Width (pixels):','width',$token,5);
+	$result .=&Apache::edit::text_arg('TeXwidth (mm):','texwidth',$token,5);
 	$result .='<nobr>';
 	$result .=&Apache::edit::text_arg('Molecule:','molecule',$token,40);
 	my $molecule=&Apache::lonxml::get_param('molecule',$parstack,
@@ -260,8 +259,8 @@
     } elsif ($target eq 'modified') {
 	my $constructtag=&Apache::edit::get_new_args($token,$parstack,
 						     $safeeval,'molecule',
-						     'width','height',
-						     'texwidth','options');
+						     'width','texwidth',
+						     'options');
 	if ($constructtag) { $result = &Apache::edit::rebuild_tag($token); }
     }
     return $result;