|
From: <ma...@us...> - 2011-06-05 16:48:06
|
Revision: 354
http://openautomation.svn.sourceforge.net/openautomation/?rev=354&view=rev
Author: mayerch
Date: 2011-06-05 16:48:00 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
Change the ColorChooser plugin from using <address ... color="..."> to the new common attribute "variant"
Modified Paths:
--------------
CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
CometVisu/trunk/visu/visu_config_demo.xml
Modified: CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2011-06-04 22:21:46 UTC (rev 353)
+++ CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2011-06-05 16:48:00 UTC (rev 354)
@@ -32,7 +32,7 @@
$p.find('address').each( function(){
var src = this.textContent;
var transform = this.getAttribute('transform');
- var color = this.getAttribute('color' );
+ var color = this.getAttribute('variant' );
var readonly = this.getAttribute('readonly' );
ga_list.push( src );
address[ '_' + src ] = [ transform, color, readonly=='true' ];
Modified: CometVisu/trunk/visu/visu_config_demo.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_demo.xml 2011-06-04 22:21:46 UTC (rev 353)
+++ CometVisu/trunk/visu/visu_config_demo.xml 2011-06-05 16:48:00 UTC (rev 354)
@@ -239,9 +239,9 @@
</page>
<colorchooser>
<label>A colorChooser</label>
- <address transform="DPT:5.001" color="r">1/2/59</address>
- <address transform="DPT:5.001" color="g">1/2/60</address>
- <address transform="DPT:5.001" color="b">1/2/61</address>
+ <address transform="DPT:5.001" variant="r">1/2/59</address>
+ <address transform="DPT:5.001" variant="g">1/2/60</address>
+ <address transform="DPT:5.001" variant="b">1/2/61</address>
</colorchooser>
<break/>
<info format="%.2f">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|