[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.Admin.ProcessManagement.Canvas.js, 1.42, 1.43

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/var/httpd/htdocs/js
In directory lancelot:/tmp/cvs-serv25723/var/httpd/htdocs/js

Modified Files:
	Core.Agent.Admin.ProcessManagement.Canvas.js 
Log Message:
Fixed an issue where new transitions would be shown as bezier curve instead of flowchart (straight line) as desired.

Author: mab

Index: Core.Agent.Admin.ProcessManagement.Canvas.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.Agent.Admin.ProcessManagement.Canvas.js,v
retrieving revision 1.42
retrieving revision 1.43
diff -2 -u -d -r1.42 -r1.43
--- Core.Agent.Admin.ProcessManagement.Canvas.js	11 Dec 2012 09:25:18 -0000	1.42
+++ Core.Agent.Admin.ProcessManagement.Canvas.js	11 Dec 2012 12:26:25 -0000	1.43
@@ -528,13 +528,10 @@
             Layout = Core.Agent.Admin.ProcessManagement.ProcessLayout,
             ProcessEntityID = $('#ProcessEntityID').val(),
-            StartActivity = Config.Process[ProcessEntityID].StartActivity,
-            jsPlumbInstance = jsPlumb.getInstance();
+            StartActivity = Config.Process[ProcessEntityID].StartActivity;
 
         // Set some jsPlumb defaults
-        jsPlumbInstance.importDefaults({
-            Connector: [ 'Flowchart', { curviness: 0, margin: -1, showLoopback:false } ],
-            paintStyle: { strokeStyle: "#000", lineWidth: 2 },
-            Anchor: 'Continuous'
-        });
+        jsPlumb.Defaults.Connector  = [ 'Flowchart', { curviness: 0, margin: -1, showLoopback:false } ];
+        jsPlumb.Defaults.PaintStyle = { strokeStyle: "#000", lineWidth: 2 };
+        jsPlumb.Defaults.Anchor     = 'Continuous';
 
         // Always start with drawing the start event element
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.