fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12230] fix download


From: Sigurd Nes
Subject: [Fmsystem-commits] [12230] fix download
Date: Fri, 24 Oct 2014 10:37:41 +0000

Revision: 12230
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12230
Author:   sigurdne
Date:     2014-10-24 10:37:40 +0000 (Fri, 24 Oct 2014)
Log Message:
-----------
fix download

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

Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2014-10-24 09:16:02 UTC (rev 12229)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2014-10-24 10:37:40 UTC (rev 12230)
@@ -410,15 +410,18 @@
                                "fnMouseout": null,
                                "fnClick": function( nButton, oConfig ) {
                                        var oParams = 
this.s.dt.oApi._fnAjaxParameters( this.s.dt );
-                                       oParams.length = null;
+                                       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) + "&allrows=1";
-                                       document.body.appendChild( iframe );
+                                       iframe.src = 
oConfig.sUrl+"?"+$.param(oParams) + "&export=1";
+                                       if(confirm("This will take some 
time..."))
+                                       {
+                                               document.body.appendChild( 
iframe );
+                                       }
                                },
                                "fnSelect": null,
                                "fnComplete": null,




reply via email to

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