[otrs-cvs] UnitTestServer/Kernel/Output/HTML/Standard PublicUnitTest.dtl, 1.8, 1.9

"CVS commits notifications of OTRS.org" <[email protected]> Tue, 23 Apr 2013 09:55:17 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/UnitTestServer/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv12079/Kernel/Output/HTML/Standard

Modified Files:
	PublicUnitTest.dtl 
Log Message:
Added MasterActionLink to test results.

Author: mb

Index: PublicUnitTest.dtl
===================================================================
RCS file: /home/cvs/UnitTestServer/Kernel/Output/HTML/Standard/PublicUnitTest.dtl,v
retrieving revision 1.8
retrieving revision 1.9
diff -2 -u -d -r1.8 -r1.9
--- PublicUnitTest.dtl	20 Aug 2012 12:37:36 -0000	1.8
+++ PublicUnitTest.dtl	23 Apr 2013 09:55:12 -0000	1.9
@@ -1,5 +1,5 @@
 # --
 # PublicUnitTest.dtl - provides HTML for PublicUnitTest.pm
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -168,7 +168,7 @@
             <tbody>
 <!-- dtl:block:OverviewRelationRow -->
-                <tr>
+                <tr class="MasterAction">
                     <td class="Fixed Status"><div class="Flag Small" title="$QData{"Color"}"><span class="$QData{"Color"}"></span></div></td>
-                    <td class="AsBlock"><a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=ProductView;Product=$LQData{"Product"}">$QData{"Product"}</a></td>
+                    <td class="AsBlock"><a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=ProductView;Product=$LQData{"Product"}" class="MasterActionLink">$QData{"Product"}</a></td>
                     <td>$QData{"SystemOk"}</td>
                     <td>$QData{"SystemNotOk"}</td>
@@ -180,2 +180,14 @@
     </div>
 </div>
+<!-- dtl:js_on_document_complete -->
+<script type="text/javascript">//<![CDATA[
+$('.MasterAction').bind('click', function (Event) {
+    var $MasterActionLink = $(this).find('.MasterActionLink');
+    // only act if the link was not clicked directly
+    if (Event.target !== $MasterActionLink.get(0)) {
+        window.location = $MasterActionLink.attr('href');
+        return false;
+    }
+});
+//]]></script>
+<!-- dtl:js_on_document_complete -->
---------------------------------------------------------------------
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