[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 09 Sep 2004 19:48:22 -0000
albertel Thu Sep 9 15:48:22 2004 EDT
Modified files:
/loncom/xml lonplot.pm
Log:
- bug #3458, allow variables for select style attributes
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.101 loncom/xml/lonplot.pm:1.102
--- loncom/xml/lonplot.pm:1.101 Mon Aug 30 11:23:23 2004
+++ loncom/xml/lonplot.pm Thu Sep 9 15:48:21 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.101 2004/08/30 15:23:23 matthew Exp $
+# $Id: lonplot.pm,v 1.102 2004/09/09 19:48:21 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1234,10 +1234,10 @@
($description,$attr,$token,
$defaults->{$attr}->{'size'});
} elsif ($defaults->{$attr}->{'edit_type'} eq 'choice') {
- $result .= &Apache::edit::select_arg
+ $result .= &Apache::edit::select_or_text_arg
($description,$attr,$defaults->{$attr}->{'choices'},$token);
} elsif ($defaults->{$attr}->{'edit_type'} eq 'onoff') {
- $result .= &Apache::edit::select_arg
+ $result .= &Apache::edit::select_or_text_arg
($description,$attr,['on','off'],$token);
}
$result .= '<br />';