[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.Admin.ProcessManagement.Canvas.js, 1.43, 1.44
"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-serv11484/var/httpd/htdocs/js
Modified Files:
Core.Agent.Admin.ProcessManagement.Canvas.js
Log Message:
Fixed bug#9044 - ProcessManagement: Transition is duplicated on redraw.
Author: mn
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.43
retrieving revision 1.44
diff -2 -u -d -r1.43 -r1.44
--- Core.Agent.Admin.ProcessManagement.Canvas.js 11 Dec 2012 12:26:25 -0000 1.43
+++ Core.Agent.Admin.ProcessManagement.Canvas.js 14 Jan 2013 16:40:10 -0000 1.44
@@ -1,5 +1,5 @@
// --
// Core.Agent.Admin.ProcessManagement.Canvas.js - provides the special module functions for the Process Management Diagram Canvas.
-// Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+// Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
// --
// $Id$
@@ -602,5 +602,4 @@
TargetNS.Redraw = function () {
-
$('#ShowEntityIDs').removeClass('Visible').text(Core.Agent.Admin.ProcessManagement.Localization.ShowEntityIDs);
$('#Canvas').empty();
@@ -633,4 +632,7 @@
jsPlumb.setRenderMode(jsPlumb.CANVAS);
+ // reset, because at this point (initial draw or redraw), there cannot be a saved connection
+ TargetNS.LatestConnectionTransitionID = undefined;
+
// init binding to connection changes
jsPlumb.bind('jsPlumbConnection', function(Data) {
@@ -662,9 +664,9 @@
else {
// get TransitionID and TransitionName
- TransitionID = TargetNS.LatestConnectionTransitionID;
+ TransitionID = Data.connection.getParameter('TransitionID');
- // Fallback: try to get the ID from the connection
+ // Fallback: try to get the ID from the earlier saved variable, if it cannot be retrieved from the connection
if (typeof TransitionID === 'undefined') {
- TransitionID = Data.connection.getParameter('TransitionID');
+ TransitionID = TargetNS.LatestConnectionTransitionID;
}
---------------------------------------------------------------------
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