fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13036] event.index.js


From: Saul
Subject: [Fmsystem-commits] [13036] event.index.js
Date: Fri, 17 Apr 2015 21:10:37 +0000

Revision: 13036
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13036
Author:   psaul
Date:     2015-04-17 21:10:36 +0000 (Fri, 17 Apr 2015)
Log Message:
-----------
event.index.js

Added Paths:
-----------
    branches/dev-syncromind/property/js/portico/event.index.js

Added: branches/dev-syncromind/property/js/portico/event.index.js
===================================================================
--- branches/dev-syncromind/property/js/portico/event.index.js                  
        (rev 0)
+++ branches/dev-syncromind/property/js/portico/event.index.js  2015-04-17 
21:10:36 UTC (rev 13036)
@@ -0,0 +1,38 @@
+/* 
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+var sUrl_agreement = phpGWLink('index.php', {'menuaction': 
'property.uievent.updatereceipt'});
+
+function onSave ()
+{
+    var api = oTable.api();
+//  console.log(api.data().length);
+    var oTT = TableTools.fnGetInstance( 'datatable-container' );
+    var selected = oTT.fnGetSelectedData();
+    var numSelected = selected.length;
+
+    if (numSelected == '0'){
+        alert('None selected');
+        return false;
+    }
+    
+    var ids = []; var mckec = {};
+    for ( var n = 0; n < selected.length; ++n )
+    {
+        var aData = selected[n];
+        ids.push(aData['id']);
+        mckec[aData['id']+"_"+aData['schedule_time']] = aData['id'];
+    }
+    
+    $.ajax({
+            type: 'POST',
+            dataType: 'json',
+            url: ""+ sUrl_agreement +"&phpgw_return_as=json",
+            data:{ids:ids,mckec:mckec},
+            success: function(data) {
+                oTable.fnDraw();
+            }
+    });
+}




reply via email to

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