|
From: <ma...@us...> - 2012-04-08 13:13:16
|
Revision: 744
http://openautomation.svn.sourceforge.net/openautomation/?rev=744&view=rev
Author: mayerch
Date: 2012-04-08 13:13:08 +0000 (Sun, 08 Apr 2012)
Log Message:
-----------
Bug fix: The slider didn't respect a writeonly flag (discovered by Jan in http://knx-user-forum.de/221420-post36.html)
Modified Paths:
--------------
CometVisu/trunk/visu/structure/pure/slide.js
Modified: CometVisu/trunk/visu/structure/pure/slide.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/slide.js 2012-04-06 10:52:25 UTC (rev 743)
+++ CometVisu/trunk/visu/structure/pure/slide.js 2012-04-08 13:13:08 UTC (rev 744)
@@ -29,8 +29,9 @@
var src = this.textContent;
var transform = this.getAttribute('transform');
var readonly = this.getAttribute('readonly');
+ var writeonly = this.getAttribute('writeonly');
ga_list.push( src )
- address[ '_' + src ] = [ transform, readonly=='true' ];
+ address[ '_' + src ] = [ transform, readonly=='true', writeonly=='true' ];
if( Transform[ transform ] && Transform[ transform ].range )
{
if( !( datatype_min > Transform[ transform ].range.min ) )
@@ -54,7 +55,10 @@
'type' : 'dim',
'valueInternal': true
});
- for( var addr in address ) $actor.bind( addr, this.update );
+ for( var addr in address )
+ {
+ if( !address[addr][2] ) $actor.bind( addr, this.update ); // no writeonly
+ }
$actor.slider({
step: step,
min: min,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|