N°1443 : Add table_id used by tables paging

This commit is contained in:
Stephen Abello
2019-02-13 14:42:39 +01:00
parent 84767692b0
commit 43b0747b83
2 changed files with 5 additions and 3 deletions

View File

@@ -431,7 +431,7 @@ EOF;
}
else
{
$aRow['form::select'] = "<input type=\"checkBox\" $sDisabled class=\"selectList{$this->iListId}\" name=\"selectObject[]\" value=\"".$aObjects[$sAlias]->GetKey()."\"></input>";
$aRow['form::select'] = "<input type=\"checkbox\" $sDisabled class=\"selectList{$this->iListId}\" name=\"selectObject[]\" value=\"".$aObjects[$sAlias]->GetKey()."\"></input>";
}
}
foreach($aColumns[$sAlias] as $sAttCode => $aData)
@@ -565,7 +565,7 @@ EOF;
<<<EOF
var oTable = $('#{$this->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 != '')

View File

@@ -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,