[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13738]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13738] |
Date: |
Tue, 18 Aug 2015 00:20:04 +0000 |
Revision: 13738
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13738
Author: nelson224
Date: 2015-08-18 00:20:03 +0000 (Tue, 18 Aug 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/js/rental/contract.edit.js
Modified: branches/dev-syncromind/rental/js/rental/contract.edit.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/contract.edit.js 2015-08-18
00:19:41 UTC (rev 13737)
+++ branches/dev-syncromind/rental/js/rental/contract.edit.js 2015-08-18
00:20:03 UTC (rev 13738)
@@ -56,4 +56,35 @@
set_parties_data = 1;
}
};
-});
\ No newline at end of file
+});
+
+addComposite = function(oArgs){
+
+ var oTT = TableTools.fnGetInstance( 'datatable-container_2' );
+ var selected = oTT.fnGetSelectedData();
+
+ if (selected.length == 0){
+ alert('None selected');
+ return false;
+ }
+
+ var values = {};
+
+ for ( var n = 0; n < selected.length; ++n )
+ {
+ var aData = selected[n];
+ values[n] = aData['id'];
+ }
+
+ var data = {'composite_id': values};
+ var requestUrl = phpGWLink('index.php', oArgs);
+
+ JqueryPortico.execute_ajax(requestUrl, function(result){
+
+ JqueryPortico.show_message('1', result);
+
+ oTable1.fnDraw();
+ oTable2.fnDraw();
+
+ }, data, 'POST', 'JSON');
+};
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13738],
Nelson Guerra <=