fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15235]


From: nelson . guerra
Subject: [Fmsystem-commits] [15235]
Date: Wed, 1 Jun 2016 01:45:00 +0000 (UTC)

Revision: 15235
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15235
Author:   nelson224
Date:     2016-06-01 01:45:00 +0000 (Wed, 01 Jun 2016)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/inc/class.uientity.inc.php

Modified: branches/dev-syncromind-2/property/inc/class.uientity.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uientity.inc.php       
2016-05-31 17:13:25 UTC (rev 15234)
+++ branches/dev-syncromind-2/property/inc/class.uientity.inc.php       
2016-06-01 01:45:00 UTC (rev 15235)
@@ -2051,6 +2051,23 @@
                                        }
                                        $doc_type_filter = 
$categories['cat_list'];
                                
+                                       $documents_tabletools = array
+                                               (
+                                               'my_name' => 'add',
+                                               'text' => lang('add new 
document'),
+                                               'type' => 'custom',
+                                               'className' => 'add',
+                                               'custom_code' => "
+                                                               var oArgs = " . 
json_encode(array(
+                                                                       
'menuaction' => 'property.uidocument.edit',                                     
                
+                                                                       
'p_entity_id' => $this->entity_id,
+                                                                       
'p_cat_id' => $this->cat_id,
+                                                                       'p_num' 
=> $values['num']
+                                               )) . ";
+                                                               
newDocument(oArgs);
+                                                       "
+                                       );
+                                       
                                        $documents_def = array
                                                (
                                                array('key' => 'document_name', 
'label' => lang('name'), 'sortable' => false, 'resizeable' => true),
@@ -2063,6 +2080,7 @@
                                                'requestUrl' => 
json_encode(self::link(array('menuaction' => 'property.uientity.get_documents', 
                                                        'location_id' => 
$location_id, 'entity_id' => $this->entity_id, 'cat_id' => $this->cat_id, 'num' 
=> $values['num'], 'phpgw_return_as' => 'json'))),
                                                'data' => "",
+                                               'tabletools' => 
$documents_tabletools,
                                                'ColumnDefs' => $documents_def,
                                                'config' => array(
                                                        array('disableFilter' 
=> true)




reply via email to

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