[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm

foxr foxr at source.lon-capa.org
Mon Feb 13 06:24:16 EST 2012


foxr		Mon Feb 13 11:24:16 2012 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  BZ 874 - Make color entries of class 'colorchooser'  this would allow some
  javascript color choosr widget to be bound to them (e.g. jPicker).
  
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.153 loncom/xml/lonplot.pm:1.154
--- loncom/xml/lonplot.pm:1.153	Mon Jul  4 09:25:13 2011
+++ loncom/xml/lonplot.pm	Mon Feb 13 11:24:16 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.153 2011/07/04 09:25:13 foxr Exp $
+# $Id: lonplot.pm,v 1.154 2012/02/13 11:24:16 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -176,14 +176,16 @@
 	 test        => $color_test, 
 	 description => 'Background color of image (xffffff)',
 	 edit_type   => 'entry',
-	 size        => '10'
+	 size        => '10',
+         class       => 'colorchooser'
 	 },
      fgcolor      => {
 	 default     => 'x000000',
 	 test        => $color_test,
 	 description => 'Foreground color of image (x000000)',
 	 edit_type   => 'entry',
-	 size        => '10'
+	 size        => '10',
+         class       => 'colorchooser'
 	 },
      transparent  => {
 	 default     => 'off',
@@ -463,7 +465,8 @@
 	 test => $color_test,
 	 description => 'Color of grid lines (x000000)',
 	 edit_type   => 'entry',
-	 size        => '10'
+	 size        => '10',
+         class       => 'colorchooser'
 	 },
      xmin      => {
 	 default => '-10.0',
@@ -534,7 +537,8 @@
 	 test => $color_test,
 	 description => 'Color of curve (x000000)',
 	 edit_type   => 'entry',
-	 size        => '10'
+	 size        => '10',
+	 class       => 'colorchooser'
 	 },
      name      => {
 	 default => '',
@@ -1930,7 +1934,8 @@
 	if ($defaults->{$attr}->{'edit_type'} eq 'entry') {
 	    $result .= &Apache::edit::text_arg
 		($description,$attr,$token,
-		 $defaults->{$attr}->{'size'});
+		 $defaults->{$attr}->{'size'},
+		$defaults->{$attr}->{'class'});
 	} elsif ($defaults->{$attr}->{'edit_type'} eq 'choice') {
 	    $result .= &Apache::edit::select_or_text_arg
 		($description,$attr,$defaults->{$attr}->{'choices'},$token);




More information about the LON-CAPA-cvs mailing list