[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.Admin.ProcessManagement.js, 1.64, 1.65

"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-serv10728/var/httpd/htdocs/js

Modified Files:
	Core.Agent.Admin.ProcessManagement.js 
Log Message:
Fixed bug#9052 - Accordion is reset after submitting a popup.

Author: mn

Index: Core.Agent.Admin.ProcessManagement.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.Agent.Admin.ProcessManagement.js,v
retrieving revision 1.64
retrieving revision 1.65
diff -2 -u -d -r1.64 -r1.65
--- Core.Agent.Admin.ProcessManagement.js	21 Jan 2013 10:32:04 -0000	1.64
+++ Core.Agent.Admin.ProcessManagement.js	21 Jan 2013 11:36:07 -0000	1.65
@@ -526,5 +526,9 @@
                 Action: 'AdminProcessManagement',
                 Subaction: 'UpdateAccordion'
-            };
+            },
+            ActiveElement;
+
+        // get active accordion element to open the same element again after updating
+        ActiveElement = $('ul#ProcessElements > li.Active').index();
 
         // Call the ajax function
@@ -535,4 +539,7 @@
             Core.UI.Accordion.Init($('ul#ProcessElements'), 'li.AccordionElement h2 a', 'div.Content');
 
+            // open accordion element again, which was active before the update
+            $('ul#ProcessElements > li:nth-child(' + (parseInt(ActiveElement,10) + 1) + ') h2 a').trigger('click');
+
             // Initialize filters
             Core.UI.Table.InitTableFilter($('#ActivityFilter'), $('#Activities'));
---------------------------------------------------------------------
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.