[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12627] change get_jquery_table_def()
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12627] change get_jquery_table_def() |
Date: |
Mon, 19 Jan 2015 23:26:05 +0000 |
Revision: 12627
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12627
Author: nelson224
Date: 2015-01-19 23:26:04 +0000 (Mon, 19 Jan 2015)
Log Message:
-----------
change get_jquery_table_def()
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.notify.inc.php
Modified: branches/dev-syncromind/property/inc/class.notify.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.notify.inc.php 2015-01-19
23:25:30 UTC (rev 12626)
+++ branches/dev-syncromind/property/inc/class.notify.inc.php 2015-01-19
23:26:04 UTC (rev 12627)
@@ -320,6 +320,37 @@
array('id' =>'disable','type'=>'buttons',
'value'=>'disable', 'label'=>lang('disable'), 'funct'=> 'onActionsClick_notify'
, 'classname'=> 'actionButton', 'value_hidden'=>""),
array('id' =>'delete','type'=>'buttons',
'value'=>'delete', 'label'=> lang('Delete'), 'funct'=> 'onActionsClick_notify'
, 'classname'=> 'actionButton', 'value_hidden'=>""),
);
+
+ $tabletools = array();
+ foreach($buttons as $entry)
+ {
+ $tabletools[] = array
+ (
+ 'my_name' =>
$entry['value'],
+ 'text' =>
lang($entry['value']),
+ 'type' => 'custom',
+ 'custom_code' => "
+
var oTT = TableTools.fnGetInstance( 'datatable-container_{$count}' );
+
var selected = oTT.fnGetSelectedData();
+
+
var numSelected = selected.length;
+
+
if (numSelected ==0){
+
alert('None selected');
+
return false;
+
}
+
var ids = [];
+
for ( var n = 0; n < selected.length; ++n )
+
{
+
var aData = selected[n];
+
ids.push(aData['id']);
+
}
+
{$entry['funct']}('{$entry['id']}', ids);
+
JqueryPortico.updateinlineTableHelper(oTable{$count}, {$requestUrl});"
+ );
+ }
+
+ /*
$tabletools = <<<JS
{
@@ -367,7 +398,8 @@
]
}
JS;
-
+ */
+
$GLOBALS['phpgw']->js->validate_file( 'portico',
'notify', 'property' );
$lang_view = lang('view');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12627] change get_jquery_table_def(),
Nelson Guerra <=