[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.CustomerSearch.js, 1.46, 1.47

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

Modified Files:
	Core.Agent.CustomerSearch.js 
Log Message:
Fixed bug#8695 - Table head of Customer Ticket History does not resize on window resize.

Author: mn

Index: Core.Agent.CustomerSearch.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.Agent.CustomerSearch.js,v
retrieving revision 1.46
retrieving revision 1.47
diff -2 -u -d -r1.46 -r1.47
--- Core.Agent.CustomerSearch.js	25 Oct 2012 12:15:00 -0000	1.46
+++ Core.Agent.CustomerSearch.js	17 Dec 2012 11:41:14 -0000	1.47
@@ -90,4 +90,6 @@
          */
         function ReplaceCustomerTicketLinks() {
+            var ResizeTimeoutWindow;
+
             $('#CustomerTickets').find('.AriaRoleMain').removeAttr('role').removeClass('AriaRoleMain');
 
@@ -118,4 +120,11 @@
                 Core.UI.StaticTableControl($('#OverviewControl').add($('#OverviewBody')));
                 Core.UI.Table.InitCSSPseudoClasses();
+
+                $(window).bind('resize', function () {
+                    window.clearTimeout(ResizeTimeoutWindow);
+                    ResizeTimeoutWindow = window.setTimeout(function () {
+                        Core.UI.AdjustTableHead($('#FixedTable thead'), $('#FixedTable tbody'), 0);
+                    }, 500);
+                });
             }
 
---------------------------------------------------------------------
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.