summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-08-29 00:40:07 (EDT)
committer Stephan Born2012-08-29 00:40:07 (EDT)
commit9cc03468a837b7385194fef9870bd4b53a161b9d (patch)
treeba7bd27723411b4875d1a3830f144ce24328b406
parent1e51e7650e4cd8b72d96b7b66d683d5f97f9e9c3 (diff)
downloadorg.eclipse.stardust.ui.web-9cc03468a837b7385194fef9870bd4b53a161b9d.zip
org.eclipse.stardust.ui.web-9cc03468a837b7385194fef9870bd4b53a161b9d.tar.gz
org.eclipse.stardust.ui.web-9cc03468a837b7385194fef9870bd4b53a161b9d.tar.bz2
CRNT-25835
1)Added code to create connection in m_diagram.js onClick() git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58743 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
index f6d8c28..81c0719 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
@@ -1248,16 +1248,17 @@ define(
*/
Diagram.prototype.onClick = function(x, y) {
if (this.newSymbol != null) {
- this.placeNewSymbol(x * this.zoomFactor, y
- * this.zoomFactor);
-
// If the symbol was created with a connection traversal
// the connection needs to be completed, too
-
- if (this.currentConnection != null) {
+ if (null != this.currentConnection) {
+ var status = this.placeNewSymbol(x - this.X_OFFSET,
+ y - this.Y_OFFSET, true);
+ this.currentConnection.toModelElementOid = this.lastSymbol.oid;
this.currentConnection.complete();
-
this.currentConnection = null;
+ } else {
+ this.placeNewSymbol(x * this.zoomFactor, y
+ * this.zoomFactor);
}
} else if (this.mode == this.NORMAL_MODE) {
this.clearCurrentSelection();