[LON-CAPA-cvs] cvs: loncom /homework functionplotresponse.pm
www
www@source.lon-capa.org
Sat, 20 Nov 2010 21:35:53 -0000
www Sat Nov 20 21:35:53 2010 EDT
Modified files:
/loncom/homework functionplotresponse.pm
Log:
Fix bug in backgroundplot
Index: loncom/homework/functionplotresponse.pm
diff -u loncom/homework/functionplotresponse.pm:1.42 loncom/homework/functionplotresponse.pm:1.43
--- loncom/homework/functionplotresponse.pm:1.42 Sat Nov 20 00:14:44 2010
+++ loncom/homework/functionplotresponse.pm Sat Nov 20 21:35:53 2010
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: functionplotresponse.pm,v 1.42 2010/11/20 00:14:44 www Exp $
+# $Id: functionplotresponse.pm,v 1.43 2010/11/20 21:35:53 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -329,8 +329,8 @@
$label='C'.$Apache::functionplotresponse::counter;
}
if ($fixed) {
- return "document.ggbApplet_$id.evalCommand('$label=Function[$function,$xmin,$xmax]')".
- ($visible?'':"document.ggbApplet.setLabelVisible('$label', false);");
+ return "document.ggbApplet_$id.evalCommand('$label=Function[$function,$xmin,$xmax]');\n".
+ ($visible?'':"document.ggbApplet_$id.setLabelVisible('$label', false);\n");
} else {
return "document.ggbApplet_$id.evalCommand('y=$function')";
}