fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13049]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13049]
Date: Tue, 21 Apr 2015 22:24:43 +0000

Revision: 13049
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13049
Author:   nelson224
Date:     2015-04-21 22:24:42 +0000 (Tue, 21 Apr 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl

Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2015-04-21 06:29:27 UTC (rev 13048)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2015-04-21 22:24:42 UTC (rev 13049)
@@ -74,6 +74,44 @@
        </xsl:variable>
        var oTable<xsl:number value="($num - 1)"/> = null;
                
+<![CDATA[
+                       TableTools.BUTTONS.download = {
+                               "sAction": "text",
+                               "sTag": "default",
+                               "sFieldBoundary": "",
+                               "sFieldSeperator": "\t",
+                               "sNewLine": "<br>",
+                               "sToolTip": "",
+                               "sButtonClass": "DTTT_button_text",
+                               "sButtonClassHover": "DTTT_button_text_hover",
+                               "sButtonText": "Download",
+                               "mColumns": "all",
+                               "bHeader": true,
+                               "bFooter": true,
+                               "sDiv": "",
+                               "fnMouseover": null,
+                               "fnMouseout": null,
+                               "fnClick": function( nButton, oConfig ) {
+                                       var oParams = 
this.s.dt.oApi._fnAjaxParameters( this.s.dt );
+                                       oParams.length = -1;
+                                       oParams.columns = null;
+                                       oParams.start = null;
+                                       oParams.draw = null;
+                                       var iframe = 
document.createElement('iframe');
+                                       iframe.style.height = "0px";
+                                       iframe.style.width = "0px";
+                                       iframe.src = 
oConfig.sUrl+"?"+$.param(oParams) + "&export=1";
+                                       if(confirm("This will take some 
time..."))
+                                       {
+                                               document.body.appendChild( 
iframe );
+                                       }
+                               },
+                               "fnSelect": null,
+                               "fnComplete": null,
+                               "fnInit": null
+                       };
+       ]]>
+       
        <xsl:choose>
                        <xsl:when test="$tabletools">
                                        JqueryPortico.TableTools<xsl:number 
value="($num - 1)"/> =      {
@@ -81,15 +119,6 @@
                                                        "sRowSelect": "multi",
                                                        "aButtons":
                                                                [
-                                                                       
<xsl:choose>
-                                                                               
<xsl:when test="download">
-                                                                               
{
-                                                                               
        "sExtends": "download",
-                                                                               
        "sButtonText": "Download",
-                                                                               
        "sUrl": '<xsl:value-of select="download"/>'
-                                                                               
}<xsl:value-of select="phpgw:conditional(not(position() = last()), ',', '')"/>
-                                                                               
</xsl:when>
-                                                                       
</xsl:choose>
                                                                        
<xsl:for-each select="$tabletools">
                                                                                
<xsl:choose>
                                                                                
        <xsl:when test="my_name = 'select_all'">
@@ -118,6 +147,13 @@
                                                                                
                        }
                                                                                
                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>                                                            
                              
                                                                                
        </xsl:when>
+                                                                               
        <xsl:when test="my_name = 'download'">
+                                                                               
                {
+                                                                               
                        "sExtends": "download",
+                                                                               
                        "sButtonText": "Download",
+                                                                               
                        "sUrl": '<xsl:value-of select="download"/>'
+                                                                               
                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>                                                            
                              
+                                                                               
        </xsl:when>
                                                                                
        <xsl:when test="type = 'custom'">
                                                                                
                {
                                                                                
                        sExtends:               "select",




reply via email to

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