[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.Admin.ProcessManagement.Canvas.js, 1.40, 1.41 Core.Agent.Admin.ProcessManagement.js, 1.61, 1.62
"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-serv22440/var/httpd/htdocs/js
Modified Files:
Core.Agent.Admin.ProcessManagement.Canvas.js
Core.Agent.Admin.ProcessManagement.js
Log Message:
Show EntityIDs on demand.
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.40
retrieving revision 1.41
diff -2 -u -d -r1.40 -r1.41
--- Core.Agent.Admin.ProcessManagement.Canvas.js 10 Dec 2012 10:28:01 -0000 1.40
+++ Core.Agent.Admin.ProcessManagement.Canvas.js 10 Dec 2012 16:29:16 -0000 1.41
@@ -188,6 +188,5 @@
SelectedInterface += Value.substr(0,1);
});
-
- text += "<li><span class=\"AvailableIn\">" + SelectedInterface + "</span> " + Core.Agent.Admin.ProcessManagement.ProcessData.ActivityDialog[Value].Name + " </li>";
+ text += "<li><span class=\"AvailableIn\">" + SelectedInterface + "</span> " + Core.Agent.Admin.ProcessManagement.ProcessData.ActivityDialog[Value].Name + " (" + Value + ") </li>";
});
}
@@ -543,4 +542,6 @@
TargetNS.Redraw = function () {
+
+ $('#ShowEntityIDs').removeClass('Visible').text(Core.Agent.Admin.ProcessManagement.Localization.ShowEntityIDs);
$('#Canvas').empty();
TargetNS.Init();
@@ -653,4 +654,28 @@
};
+ TargetNS.ShowEntityIDs = function () {
+
+ var ActivityEntityID, TransitionEntityID, Connections, Overlays;
+
+ // show EntityIDs of Activities
+ $('.Activity').each(function() {
+ ActivityEntityID = $(this).attr('id');
+ $(this).append('<em class="EntityID">' + ActivityEntityID + '</em>');
+ });
+
+ // show EntityIDs of Transitions
+ Connections = jsPlumb.getConnections();
+ $(Connections).each(function() {
+ TransitionEntityID = this.getParameter('TransitionID');
+ Overlays = this.getOverlays();
+ $(Overlays).each(function() {
+ if (this.type === 'Label') {
+ $(this.canvas).append('<em class="EntityID">' + TransitionEntityID + '</em>');
+ }
+ });
+ });
+
+ };
+
return TargetNS;
}(Core.Agent.Admin.ProcessManagement.Canvas || {}));
Author: mab
Index: Core.Agent.Admin.ProcessManagement.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.Agent.Admin.ProcessManagement.js,v
retrieving revision 1.61
retrieving revision 1.62
diff -2 -u -d -r1.61 -r1.62
--- Core.Agent.Admin.ProcessManagement.js 27 Nov 2012 12:19:57 -0000 1.61
+++ Core.Agent.Admin.ProcessManagement.js 10 Dec 2012 16:29:16 -0000 1.62
@@ -692,4 +692,16 @@
});
+ $('#ShowEntityIDs').bind('click', function(Event) {
+ if ($(this).hasClass('Visible')) {
+ $(this).removeClass('Visible').text(Core.Agent.Admin.ProcessManagement.Localization.ShowEntityIDs);
+ $('em.EntityID').remove();
+ }
+ else {
+ $(this).addClass('Visible').text(Core.Agent.Admin.ProcessManagement.Localization.HideEntityIDs);
+ TargetNS.Canvas.ShowEntityIDs();
+ }
+ return false;
+ });
+
// Init Diagram Canvas
TargetNS.Canvas.Init();
---------------------------------------------------------------------
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