[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13739]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13739] |
Date: |
Tue, 18 Aug 2015 00:20:32 +0000 |
Revision: 13739
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13739
Author: nelson224
Date: 2015-08-18 00:20:32 +0000 (Tue, 18 Aug 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/inc/class.uicontract.inc.php
Modified: branches/dev-syncromind/rental/inc/class.uicontract.inc.php
===================================================================
--- branches/dev-syncromind/rental/inc/class.uicontract.inc.php 2015-08-18
00:20:03 UTC (rev 13738)
+++ branches/dev-syncromind/rental/inc/class.uicontract.inc.php 2015-08-18
00:20:32 UTC (rev 13739)
@@ -1141,7 +1141,7 @@
)
);
- $tabletools2[] = array
+ $tabletools_composite[] = array
(
'my_name' =>
'view',
'text' =>
lang('show'),
@@ -1151,18 +1151,19 @@
'parameters' =>
json_encode(array('parameter'=>array(array('name'=>'id', 'source'=>'id'))))
);
-
- $tabletools2[] = array
+ $tabletools_composite[] = array
(
'my_name' =>
'add',
'text' =>
lang('add'),
- 'action' =>
self::link(array(
- 'menuaction'
=> 'rental.uicontract.add_composite',
- 'contract_id'
=> $contract_id,
-
'phpgw_return_as' => 'json'
- )),
- 'target' =>
'ajax',
- 'parameters' =>
json_encode(array('parameter'=>array(array('name'=>'composite_id',
'source'=>'id'))))
+ 'type' =>
'custom',
+ 'custom_code' => "
+ var oArgs =
".json_encode(array(
+
'menuaction' => 'rental.uicontract.add_composite',
+
'contract_id' => $contract_id,
+
'phpgw_return_as' => 'json'
+ )).";
+ addComposite(oArgs);
+ "
);
$datatable_def[] = array
@@ -1171,7 +1172,7 @@
'requestUrl' => "''",
'data' =>
json_encode(array()),
'ColumnDefs' => $composite_def,
- 'tabletools' => $tabletools2,
+ 'tabletools' =>
$tabletools_composite,
'config' => array(
array('disableFilter' => true)
)
@@ -1509,6 +1510,7 @@
public function add_composite(){
$contract_id = (int)phpgw::get_var('contract_id');
$composite_id = (int)phpgw::get_var('composite_id');
+
$so_contract = rental_socontract::get_instance();
$contract = $so_contract->get_single($contract_id);
if($contract->has_permission(PHPGW_ACL_EDIT))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13739],
Nelson Guerra <=