summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-08-30 07:26:42 (EDT)
committer Stephan Born2012-08-30 07:26:42 (EDT)
commitb53bcf9d564ef99173922a51792a7cc861bb33f8 (patch)
treeece9a3a354ea99764781378849aaf864e9478862
parentabbb8ca6d220873b097dfb52809987ed841ae1f9 (diff)
downloadorg.eclipse.stardust.ui.web-b53bcf9d564ef99173922a51792a7cc861bb33f8.zip
org.eclipse.stardust.ui.web-b53bcf9d564ef99173922a51792a7cc861bb33f8.tar.gz
org.eclipse.stardust.ui.web-b53bcf9d564ef99173922a51792a7cc861bb33f8.tar.bz2
CRNT-25577
Added a check in dragStart of AnchorPoint in m_symbol.js to check if connection is selected git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58801 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
index 7d9657b..fc1f7ec 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
@@ -1795,7 +1795,11 @@ define(
*
*/
AnchorPoint.prototype.dragStart = function() {
- this.dragConnection = this.symbol.connections[0];
+ for ( var n in this.symbol.connections) {
+ if (this.symbol.connections[n].selected) {
+ this.dragConnection = this.symbol.connections[n];
+ }
+ }
if (this.dragConnection == null) {
return;