[LON-CAPA-cvs] cvs: loncom /homework functionplotresponse.pm
www
www@source.lon-capa.org
Tue, 25 Jan 2011 20:52:08 -0000
www Tue Jan 25 20:52:08 2011 EDT
Modified files:
/loncom/homework functionplotresponse.pm
Log:
Do not allow the slider length to go to zero, so the point does not get "stuck."
Index: loncom/homework/functionplotresponse.pm
diff -u loncom/homework/functionplotresponse.pm:1.50 loncom/homework/functionplotresponse.pm:1.51
--- loncom/homework/functionplotresponse.pm:1.50 Fri Jan 14 01:56:32 2011
+++ loncom/homework/functionplotresponse.pm Tue Jan 25 20:52:08 2011
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: functionplotresponse.pm,v 1.50 2011/01/14 01:56:32 www Exp $
+# $Id: functionplotresponse.pm,v 1.51 2011/01/25 20:52:08 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -184,7 +184,7 @@
my $mult=($fixed?'a*':'');
return (<<ENDSETSVARIABLE);
document.ggbApplet_$id.evalCommand("a=1");
-document.ggbApplet_$id.evalCommand("$xvariable=Slider[0,$domain,$xinterval]");
+document.ggbApplet_$id.evalCommand("$xvariable=Slider[$xinterval,$domain,$xinterval]");
document.ggbApplet_$id.setVisible("$xvariable", false);
document.ggbApplet_$id.evalCommand("$xvariable=$xrel");
document.ggbApplet_$id.evalCommand("$yvariable=Slider[-$range,$range,$yinterval]");