|
From: <ma...@us...> - 2011-02-04 21:25:58
|
Revision: 278
http://openautomation.svn.sourceforge.net/openautomation/?rev=278&view=rev
Author: mayerch
Date: 2011-02-04 21:25:52 +0000 (Fri, 04 Feb 2011)
Log Message:
-----------
Allow connection to be extended even if it's not selected
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/gle/gle.connection.js
Modified: PyWireGate/trunk/logic_editor/gle/gle.connection.js
===================================================================
--- PyWireGate/trunk/logic_editor/gle/gle.connection.js 2011-02-04 21:11:53 UTC (rev 277)
+++ PyWireGate/trunk/logic_editor/gle/gle.connection.js 2011-02-04 21:25:52 UTC (rev 278)
@@ -98,10 +98,11 @@
{
var x = paths[i].path[j][0];
var y = paths[i].path[j][1];
+ var thisClass = 'move';
var style = '';
- if( j == 0 || j == paths[i].path.length-1 ) style = 'opacity:0;';
+ if( j == 0 || j == paths[i].path.length-1 ) {style = 'opacity:0;'; thisClass += 'firstlast'; }
if( inEdit && j == paths[i].path.length-1 ) style += 'display:none';
- connectionDrag( [g,i,j], canvas.rect( g, x-outset, y-outset, 1+inset+outset, 1+inset+outset, {class:'move',style:style} ) );
+ connectionDrag( [g,i,j], canvas.rect( g, x-outset, y-outset, 1+inset+outset, 1+inset+outset, {class:thisClass,style:style} ) );
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|