fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16659] more on helpdesk


From: sigurdne
Subject: [Fmsystem-commits] [16659] more on helpdesk
Date: Sat, 29 Apr 2017 19:41:13 -0400 (EDT)

Revision: 16659
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16659
Author:   sigurdne
Date:     2017-04-29 19:41:11 -0400 (Sat, 29 Apr 2017)
Log Message:
-----------
more on helpdesk

Modified Paths:
--------------
    trunk/helpdesk/templates/base/tts.xsl

Modified: trunk/helpdesk/templates/base/tts.xsl
===================================================================
--- trunk/helpdesk/templates/base/tts.xsl       2017-04-29 23:10:52 UTC (rev 
16658)
+++ trunk/helpdesk/templates/base/tts.xsl       2017-04-29 23:41:11 UTC (rev 
16659)
@@ -263,7 +263,15 @@
                //      var initialSelection = <xsl:value-of 
select="resources_json"/>;
                var lang = <xsl:value-of select="php:function('js_lang',  
'Name', 'Address')"/>
 
+               function open_print_view()
+               {
+                       var oArgs = {menuaction:'helpdesk.uitts._print',id: 
$('#id').val()};
+                       var strURL = phpGWLink('index.php', oArgs);
+                       var win = window.open(strURL, '_blank');
+                       win.focus();
+               }
 
+
        </script>
        <dl>
                <xsl:choose>
@@ -671,6 +679,11 @@
                                        <xsl:value-of 
select="php:function('lang', 'Back to the ticket list')"/>
                                </xsl:attribute>
                        </input>
+                       <input type="button" class="pure-button 
pure-button-primary" name="print_view" onClick="open_print_view();">
+                               <xsl:attribute name="value">
+                                       <xsl:value-of 
select="php:function('lang', 'print view')"/>
+                               </xsl:attribute>
+                       </input>
                </div>
        </form>
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]