fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16560]


From: nelson . guerra
Subject: [Fmsystem-commits] [16560]
Date: Sat, 8 Apr 2017 01:20:43 -0400 (EDT)

Revision: 16560
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16560
Author:   nelson224
Date:     2017-04-08 01:20:42 -0400 (Sat, 08 Apr 2017)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/js/portico/report.index.js

Modified: branches/dev-syncromind-2/property/js/portico/report.index.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/report.index.js       
2017-04-08 04:22:42 UTC (rev 16559)
+++ branches/dev-syncromind-2/property/js/portico/report.index.js       
2017-04-08 05:20:42 UTC (rev 16560)
@@ -11,4 +11,33 @@
        var requestUrl = phpGWLink('index.php', oArgs);
 
        window.open(requestUrl, '_self');
-};
\ No newline at end of file
+};
+
+function download(oArgs)
+{
+       var api = $('#datatable-container_0').dataTable().api();
+       var selected = api.rows({selected: true}).data();
+
+       if (selected.length == 0)
+       {
+               alert('None selected');
+               return false;
+       }
+
+       if (!confirm("This will take some time..."))
+       {
+               return false;
+       }
+       
+       var ids = [];
+       var requestUrl = '';
+       for (var n = 0; n < selected.length; ++n)
+       {
+               var aData = selected[n];
+               oArgs['id'] = aData['id'];
+               //ids.push(aData['id']);
+               
+               requestUrl = phpGWLink('index.php', oArgs);
+               window.open(requestUrl, '_self');
+       }
+}
\ No newline at end of file




reply via email to

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