diff --git a/application/datatable.class.inc.php b/application/datatable.class.inc.php index 5c0c14f42..05c15af85 100644 --- a/application/datatable.class.inc.php +++ b/application/datatable.class.inc.php @@ -431,7 +431,7 @@ EOF; } else { - $aRow['form::select'] = "iListId}\" name=\"selectObject[]\" value=\"".$aObjects[$sAlias]->GetKey()."\">"; + $aRow['form::select'] = "iListId}\" name=\"selectObject[]\" value=\"".$aObjects[$sAlias]->GetKey()."\">"; } } foreach($aColumns[$sAlias] as $sAttCode => $aData) @@ -565,7 +565,7 @@ EOF; <<iListId} table.listResults'); oTable.tableHover(); -oTable.tablesorter( { $sHeaders widgets: ['myZebra', 'truncatedList']} ).tablesorterPager({container: $('#pager{$this->iListId}'), totalRows:$iCount, size: $iPageSize, filter: '$sOQL', extra_params: '$sExtraParams', select_mode: '$sSelectModeJS', displayKey: $sDisplayKey, columns: $sJSColumns, class_aliases: $sJSClassAliases $sCssCount}); +oTable.tablesorter( { $sHeaders widgets: ['myZebra', 'truncatedList']} ).tablesorterPager({container: $('#pager{$this->iListId}'), totalRows:$iCount, size: $iPageSize, filter: '$sOQL', extra_params: '$sExtraParams', select_mode: '$sSelectModeJS', displayKey: $sDisplayKey, table_id: '{$this->iListId}', columns: $sJSColumns, class_aliases: $sJSClassAliases $sCssCount}); EOF ); if ($sFakeSortList != '') diff --git a/js/jquery.tablesorter.pager.js b/js/jquery.tablesorter.pager.js index bbd74ebd1..ad527775a 100644 --- a/js/jquery.tablesorter.pager.js +++ b/js/jquery.tablesorter.pager.js @@ -202,7 +202,8 @@ function sprintf(format, etc) { end: end, sort_col: s_col, sort_order: s_order, - select_mode: c.select_mode, + select_mode: c.select_mode, + list_id: c.table_id, display_key: c.displayKey, columns: c.columns, class_aliases: c.class_aliases @@ -448,6 +449,7 @@ function sprintf(format, etc) { filter: '', extra_params: '', select_mode: '', + table_id: 0, totalSelected: 0, selectionMode: 'positive', displayKey: true,