|
From: <ma...@us...> - 2011-11-06 16:06:50
|
Revision: 503
http://openautomation.svn.sourceforge.net/openautomation/?rev=503&view=rev
Author: mayerch
Date: 2011-11-06 16:06:44 +0000 (Sun, 06 Nov 2011)
Log Message:
-----------
Bug fix: clip to min/max if old+delta is out of range (old and wrong behaviour was to do nothing, i.e. the value stays out of range)
Modified Paths:
--------------
CometVisu/trunk/visu/designs/structure_pure.js
Modified: CometVisu/trunk/visu/designs/structure_pure.js
===================================================================
--- CometVisu/trunk/visu/designs/structure_pure.js 2011-11-06 15:19:17 UTC (rev 502)
+++ CometVisu/trunk/visu/designs/structure_pure.js 2011-11-06 16:06:44 UTC (rev 503)
@@ -830,7 +830,8 @@
{
value = parseFloat($(this).parent().find('.switchInvisible').data('basicvalue'));
value = value + parseFloat(data.value);
- if (value < data.min || data.max < value) return; // check min/max
+ if (value < data.min ) value = data.min;
+ if( value > data.max ) value = data.max;
}
for( var addr in data.address )
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|